Modal Components - Radio Button Groups, Toggle
"Radio Button Groups" and "Toggle" are two components that Discord utilizes greatly could be great additions for bot Modals. These components would go a long way to empowering bot development. Considering these components already exist in official Discord UI such as permissions management and settings, they should be relatively straight-forward to make available for public use.
Screenshots will be provided to help identify which components should be introduced.
When it comes to radio button groups, three options are available: deny, unset, allow. These options could be simply represented as an enumerator.
When it comes to the "toggle" component, it's pretty self-explanatory. Clicking the toggle would invert the current Boolean-type value.
The component values could be reported in a Modal Component Submit Interaction (as known in DiscordJS library).
Finally, screenshots:
-
It seems that screenshots are not working.
0 -
Modal components are UI elements that are used to display content or gather input from the user in a modal dialog window. Radio button groups and toggles are common examples of modal components.
A radio button group presents a set of mutually exclusive options to the user, where only one option can be selected at a time. Toggles, on the other hand, are used to represent a binary choice, where the user can select one of two options that are mutually exclusive.
Both radio button groups and toggles are often used in forms, settings menus, and other interfaces where users need to make choices. They are intuitive and easy to use, and they can help streamline the user experience by presenting options in a clear and organized manner.
2 -
Couldn't have said it better myself. Not an insult, but almost reads like an AI wrote that perfectly.
1 -
I was just about to post about this exact thing. This should definitely be added.
0 -
Bumping this because I still care for it.
edit: So apparently commenting doesn't bump a post. Yall should add a bump feature to this website.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
5 Kommentare