Would be great to have a "Toggle Button" component! #7724
Replies: 6 comments 3 replies
-
We had to create a
|
Beta Was this translation helpful? Give feedback.
-
@CaitlinSweeney Looks great -- I literally just did this too. Just wanted to make a suggestion to get this into the core components because I find myself needing one all the time. |
Beta Was this translation helpful? Give feedback.
-
@DarrenBaldwin07 Maybe this would be about adding the possibility of having labels in the already existing switch component? |
Beta Was this translation helpful? Give feedback.
-
Hey! I opened a PR to add this feature to the library but I'm looking for some feedback about how the community expects features like If you have any opinions for your use case, please contribute to the discussion in #7866 Thanks! |
Beta Was this translation helpful? Give feedback.
-
I'm in big favor of adding a dedicated Toggle Button component as it's a special type of button whose nuances need to be considered. One important point is accessibility:
From looking at the topic description i'm not sure everybody is one the same side here. IMHO this is not a "Toggle Button": – it's simply a radio button with a nice UX. Examples for Toggle Buttons
|
Beta Was this translation helpful? Give feedback.
-
err... so where did we end up on this? Would love this feature. |
Beta Was this translation helpful? Give feedback.
-
Description
Currently, Chakra has the Switch (https://chakra-ui.com/docs/components/switch) however this has no indicator (label). I would propose adding a new "Toggle Button" component that simply toggles between 2 different states.
Problem Statement/Justification
Refer to description.
Proposed Solution or API
N/A
Alternatives
N/A
Additional Information
Here is a example (via: https://turbo.build):
Beta Was this translation helpful? Give feedback.
All reactions