vwc-toggle-button #732
Replies: 6 comments 19 replies
-
what would you say is the value offered here beyond what can be achieved using a group of vwc-buttons? |
Beta Was this translation helpful? Give feedback.
-
I would suggest keeping it synced with other components like tab-bar and a dedicated option element to not pollute the original button with more style variants or scoping <vwc-toggle-button-bar>
<vwc-toggle-button value="whatever"></vwc-toggle-button>
<vwc-toggle-button value="whatever1"></vwc-toggle-button>
<vwc-toggle-button value="whatever2"></vwc-toggle-button>
<vwc-toggle-button value="whatever3"></vwc-toggle-button>
</vwc-toggle-butto-bar>
> ``` |
Beta Was this translation helpful? Give feedback.
-
Ok, the vote was case for:
Question about it: instead of building one thing, we need to build two new things (toggle-button-bar and toggle-button)? I know some ppl think inheritance is an innocent and harmless tool, but I'm not one of them - so please let me know you are convinced we'd like to unnecessarily create another inheritance level. |
Beta Was this translation helpful? Give feedback.
-
Screen.Recording.2021-04-06.at.22.37.29.mov |
Beta Was this translation helpful? Give feedback.
-
follow progress at https://tmp.dev.vivid.vonage.com/753/index.html?path=/story/components-atoms-toggle-buttons-group--basic |
Beta Was this translation helpful? Give feedback.
-
consider vertical layout to enable navbar usage. |
Beta Was this translation helpful? Give feedback.
-
Hi,
We're starting to think about the
vwc-toggle-button
component.Somewhat like this:
Taken from here: https://material-ui.com/components/toggle-button/
Suggested API
Usage Template
API
Properties/Attributes
multiple
reflected
value
property
activeIndex
property
Events
toggle
Design API
There will be a class set on the selected button/s that will change its look according to what will be decided in Figma.
Beta Was this translation helpful? Give feedback.
All reactions