Skip to main content

DrawerMenuItemProps

DrawerMenuItemProps = Omit<ToggleButtonProps, "id" | "isSelected" | "className"> & object

DrawerMenuItem implements DrawerTrigger with the default behavior of the trigger's open event type, which resets the stack before pushing the new view

Type Declaration

classNames?

optional classNames: object

Class names to be applied to the item and tooltip

classNames.item?

optional item: string

classNames.tooltip?

optional tooltip: string

for

for: UniqueId

The unique identifier of the view that this menu item controls.

Links the menu item to a specific view, enabling it to open or toggle the associated view when activated.

The value should match the id of the target view component. This prop is required for correct association and interaction.

If the menu item is intended to control multiple views, use the views prop for additional associations; do not include the for id in the views array.

textValue

textValue: string

When set this will be the text for the tooltip

toggle?

optional toggle: boolean

If set to true, the menu item will toggle the visibility of the associated view each time it is activated.

By default, the menu item only opens the view. Use this prop to enable toggling between open and closed states.