Menu API
API documentation for Menu component
MenuRoot#
Props#
Defines valid properties in Menu component.
State#
Defines valid state in Menu component.
Exposes#
Defines the methods and properties exposed by Menu component.
Events#
MenuRootOpenChangeEvent
Event fired when the menu's open state changes.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of Menu component.
Types#
Instance
Instance of Menu component.
| values |
|---|
| ComponentInstance<MenuRootProps, MenuRootState, MenuRootExposes> |
MenuList#
Props#
Defines valid properties in MenuList component.
Exposes#
Defines the methods and properties exposed by MenuList component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of MenuList component.
Types#
Instance
Instance of MenuList component.
| values |
|---|
| ComponentInstance<MenuListProps, MenuListState, MenuListExposes> |
MenuLabel#
Props#
Defines valid properties in MenuLabel component.
Exposes#
Defines the methods and properties exposed by MenuLabel component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of MenuLabel component.
| name | type | default | description |
|---|---|---|---|
| root | MenuLabelPassThroughType<HTMLAttributes<HTMLLIElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of MenuLabel component.
| values |
|---|
| ComponentInstance<MenuLabelProps, MenuLabelState, MenuLabelExposes> |
MenuSub#
Props#
Defines valid properties in MenuSub component.
State#
Defines valid state in MenuSub component.
Exposes#
Defines the methods and properties exposed by MenuSub component.
Events#
MenuSubOpenChangeEvent
Event fired when the menu's open state changes.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of MenuSub component.
| name | type | default | description |
|---|---|---|---|
| root | MenuSubPassThroughType<HTMLAttributes<HTMLLIElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of MenuSub component.
| values |
|---|
| ComponentInstance<MenuSubProps, MenuSubState, MenuSubExposes> |
MenuSeparator#
Props#
Defines valid properties in MenuSeparator component.
Exposes#
Defines the methods and properties exposed by MenuSeparator component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of MenuSeparator component.
| name | type | default | description |
|---|---|---|---|
| root | MenuSeparatorPassThroughType<HTMLAttributes<HTMLLIElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of MenuSeparator component.
| values |
|---|
| ComponentInstance<MenuSeparatorProps, MenuSeparatorState, MenuSeparatorExposes> |
MenuTrigger#
Props#
Defines valid properties in MenuTrigger component.
Exposes#
Defines the methods and properties exposed by MenuTrigger component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of MenuTrigger component.
| name | type | default | description |
|---|---|---|---|
| root | MenuTriggerPassThroughType<HTMLAttributes<HTMLButtonElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of MenuTrigger component.
| values |
|---|
| ComponentInstance<MenuTriggerProps, MenuTriggerState, MenuTriggerExposes> |
MenuPortal#
Props#
Defines valid properties in MenuPortal component.
Exposes#
Defines the methods and properties exposed by MenuPortal component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of MenuPortal component.
| name | type | default | description |
|---|---|---|---|
| root | MenuPortalPassThroughType<HTMLAttributes<HTMLDivElement>> | null | Used to pass attributes to the root's DOM element. |
MenuIcon#
Props#
Defines valid properties in MenuIcon component.
Exposes#
Defines the methods and properties exposed by MenuIcon component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of MenuIcon component.
| name | type | default | description |
|---|---|---|---|
| root | MenuIconPassThroughType<SVGAttributes<SVGElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of MenuIcon component.
| values |
|---|
| ComponentInstance<MenuIconProps, MenuIconState, MenuIconExposes> |
MenuCheckboxGroup#
Props#
Defines valid properties in MenuCheckboxGroup component.
Exposes#
Defines the methods and properties exposed by MenuCheckboxGroup component.
| name | type | default | description |
|---|---|---|---|
| context | MenuCheckboxGroupContextInterface | null | Context value for the checkbox group containing the current selection state, change handler, and optional group name. |
Types#
Instance
Instance of MenuCheckboxGroup component.
| values |
|---|
| ComponentInstance<MenuCheckboxGroupProps, MenuCheckboxGroupState, MenuCheckboxGroupExposes> |
MenuItem#
Props#
Defines valid properties in MenuItem component.
Exposes#
Defines the methods and properties exposed by MenuItem component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of MenuItem component.
| name | type | default | description |
|---|---|---|---|
| root | MenuItemPassThroughType<HTMLAttributes<HTMLLIElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of MenuItem component.
| values |
|---|
| ComponentInstance<MenuItemProps, MenuItemState, MenuItemExposes> |
MenuCheckboxItem#
Props#
Defines valid properties in MenuCheckboxItem component.
Exposes#
Defines the methods and properties exposed by MenuCheckboxItem component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of MenuCheckboxItem component.
| name | type | default | description |
|---|---|---|---|
| root | MenuCheckboxItemPassThroughType<HTMLAttributes<HTMLLIElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of MenuCheckboxItem component.
| values |
|---|
| ComponentInstance<MenuCheckboxItemProps, MenuCheckboxItemState, MenuCheckboxItemExposes> |
MenuRadioGroup#
Props#
Defines valid properties in MenuRadioGroup component.
Exposes#
Defines the methods and properties exposed by MenuRadioGroup component.
| name | type | default | description |
|---|---|---|---|
| context | MenuRadioGroupContextInterface | null | Context value for the radio group containing the current selection state, change handler, and optional group name. |
Types#
Instance
Instance of MenuRadioGroup component.
| values |
|---|
| ComponentInstance<MenuRadioGroupProps, MenuRadioGroupState, MenuRadioGroupExposes> |
MenuRadioItem#
Props#
Defines valid properties in MenuRadioItem component.
State#
Exposes#
Defines the methods and properties exposed by MenuRadioItem component.
Events#
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of MenuRadioItem component.
| name | type | default | description |
|---|---|---|---|
| root | MenuRadioItemPassThroughType<HTMLAttributes<HTMLLIElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of MenuRadioItem component.
| values |
|---|
| ComponentInstance<MenuRadioItemProps, MenuRadioItemState, MenuRadioItemExposes> |
MenuCheckboxIcon#
Props#
Defines valid properties in MenuCheckboxIcon component.
Exposes#
Defines the methods and properties exposed by MenuCheckboxIcon component.
| name | type | default | description |
|---|---|---|---|
| menu | MenuRootInstance | null | The Menu component instance. |
| checkboxitem | MenuCheckboxItemInstance | null | Instance of the MenuCheckboxItem component. |
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of MenuCheckboxIcon component.
| name | type | default | description |
|---|---|---|---|
| root | MenuCheckboxIconPassThroughType<SVGAttributes<SVGElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of MenuCheckboxIcon component.
| values |
|---|
| ComponentInstance<MenuCheckboxIconProps, MenuCheckboxIconState, MenuCheckboxIconExposes> |
MenuRadioIcon#
Props#
Defines valid properties in MenuRadioIcon component.
Exposes#
Defines the methods and properties exposed by MenuRadioIcon component.
| name | type | default | description |
|---|---|---|---|
| menu | MenuRootInstance | null | The Menu component instance. |
| radioitem | MenuRadioItemInstance | null | Instance of the MenuRadioItem component. |
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of MenuRadioIcon component.
| name | type | default | description |
|---|---|---|---|
| root | MenuRadioIconPassThroughType<SVGAttributes<SVGElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of MenuRadioIcon component.
| values |
|---|
| ComponentInstance<MenuRadioIconProps, MenuRadioIconState, MenuRadioIconExposes> |
useMenu#
Types#
Instance
Instance of useMenu headless.
| values |
|---|
| HeadlessInstance<useMenuProps, useMenuState, useMenuExposes> |
useMenuSub#
Types#
Instance
Instance of useMenuSub headless.
| values |
|---|
| HeadlessInstance<useMenuSubProps, useMenuSubState, useMenuSubExposes> |