Menu
Example
Props
Name | Type | Default Value | Required | Description |
---|---|---|---|---|
size |
| Yes | ||
items | MenuItemProps[] | Yes | ||
header | Children | No | Optional static content that is displayed before the menu items. | |
trigger | (ref: Ref<HTMLElement>, props: Pick<AriaButtonProps<"button">, "id" | "aria-labelledby">, state: MenuTriggerState) => Element | Yes | The trigger element that will be used to open the menu.
It must accept a It can use the | |
initialIsOpen | boolean | No | ||
placement |
| No | ||
offset | number | No | ||
dividers | boolean | No | ||
maxHeight | number | No | ||
closeOnSelect | boolean | No | ||
nestedMenuPlacement |
| right top | No | |
nestedMenuOffset | number | No |