- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 32.7k
Closed
Labels
scope: menuChanges related to the menu.Changes related to the menu.scope: switchChanges related to the switch.Changes related to the switch.
Description
Currently there is no option to set defaultToggled for a toggle on menuItem. Allowing a toggled (isToggled) prop from the menu into the menu item would provide a higher level of control.
A way to achieve this would be to allow the menuItems array objects to have a isToggled key value bool.
On the menu component you could pass into the Menu Item component the menuItem.isToggle key into its props, which would then pass that prop into the Toggle component's defaultToggled prop.
Metadata
Metadata
Assignees
Labels
scope: menuChanges related to the menu.Changes related to the menu.scope: switchChanges related to the switch.Changes related to the switch.