AriaMenuItem
type AriaMenuItem = Omit<ItemProps<typeof Item>, "children"> & object;
The structure of a menu item that can be used to create a dropdown menu.
Type declaration
| Name | Type | Description |
|---|---|---|
alternativeHoverClassName? | string | Class name that is used to override the default hover style. |
alternativeHoverStyle? | CSSProperties | Style that is used to override the default hover style. |
className? | string | The class name for the item. |
closeMenuOnItemClick? | boolean | If set to false, the menu will not close when the user clicks this item. |
icon? | React.ReactNode | The icon to display next to the item. |
isActive? | boolean | Sets the data-active attribute to true and applies styling |
key | string | The unique key for the item. |
label | React.ReactNode | The label of the item. |
onItemClick()? | () => void | If set, this function will be called when the user clicks this item. |
style? | CSSProperties | The style for the item. |
testId? | string | The test id for the item. |