An accessible dropdown menu for the common dropdown menu button design pattern.
rc.menu(
rc.menu_button("Menu"),
rc.menu_list(
rc.menu_item("Example"),
rc.menu_divider(),
rc.menu_item("Example"),
rc.menu_item("Example"),
),
)
rc.Menu
The wrapper component provides context, state, and focus management.
rc.MenuButton
The trigger for the menu list. Must be a direct child of Menu.
Event Triggers
See the full list of default event triggersrc.MenuList
The wrapper for the menu items. Must be a direct child of Menu.
Props
No component specific props
Event Triggers
See the full list of default event triggersrc.MenuItem
The trigger that handles menu selection. Must be a direct child of a MenuList.
Event Triggers
See the full list of default event triggersrc.MenuDivider
A visual separator for menu items and groups.
Props
No component specific props
Event Triggers
See the full list of default event triggersrc.MenuGroup
A wrapper to group related menu items.
Props
No component specific props
Event Triggers
See the full list of default event triggersrc.MenuOptionGroup
A wrapper for checkable menu items (radio and checkbox).
Event Triggers
See the full list of default event triggersrc.MenuItemOption
The checkable menu item, to be used with MenuOptionGroup.