Overlays
Menu
client64.5 kB
@stellaria/nebula-webMenuPropsPreview
Props
13| Prop | Type | Default |
|---|---|---|
aria-label | string | — |
autoFocus | boolean | "first" | "last" | — |
className | string | — |
crossOffset | number | — |
defaultOpened | boolean | false |
items required | MenuItemData[] | — |
offset | number | 6 |
onAction | ((key: string) => void) | — |
onOpenChange | ((opened: boolean) => void) | — |
opened | boolean | — |
placement | PopoverPlacement | "bottom start" |
trigger required | OverlayTriggerElement | — |
width | string | number | — |
Slot props
6Each one spreads over an inner element, so you can restyle a region without forking the component.
| Prop | Type | Default |
|---|---|---|
bodyProps Label and description column. | BoxSlotProps | — |
descriptionProps The description, when the row has one. | TextSlotProps | — |
iconProps Wrapper for the icon, when the row has one. | BoxSlotProps | — |
labelProps The label. It spreads AFTER the aria props, so the consumer wins. | TextSlotProps | — |
listProps The list. It already carries the aria menu props. | BoxSlotProps | — |
shortcutProps The keyboard shortcut, rendered in a `kbd`. | BoxSlotProps | — |