API reference: @salmonui/buttons/menu
SubmenuPropsinterface
import type { SubmenuProps } from '@salmonui/buttons/menu';interface SubmenuProps extends Omit<ItemCommonProps, 'children' | 'onClick'> {
readonly id?: string;
readonly label: ReactNode;
readonly children?: ReactNode;
readonly menuClassName?: string;
readonly menuStyle?: CSSProperties;
}
| Name | Signature | Description |
|---|---|---|
idoptional | readonly id?: string; | DOM id of the submenu item (default generated; the submenu is labelled by it). |
label | readonly label: ReactNode; | Content of the item that opens the submenu. |
childrenoptional | readonly children?: ReactNode; | The submenu entries. |
menuClassNameoptional | readonly menuClassName?: string; | Class name and style of the submenu popup. |
menuStyleoptional | readonly menuStyle?: CSSProperties; | |
iconoptionalinherited | icon?: ReactNode; | Decorative leading icon ( |
disabledoptionalinherited | disabled?: boolean; | Skipped by arrow keys and typeahead; |
textValueoptionalinherited | textValue?: string; | Typeahead text when the children are not plain text. |
classNameoptionalinherited | className?: string; | |
styleoptionalinherited | style?: CSSProperties; | |
refoptionalinherited | ref?: Ref<HTMLElement>; |