API reference: @salmonui/buttons/menu
MenubarItemPropsinterface
import type { MenubarItemProps } from '@salmonui/buttons/menu';interface MenubarItemProps extends TopItemDomProps {
readonly id: string;
readonly children?: ReactNode;
readonly icon?: ReactNode;
readonly disabled?: boolean;
readonly textValue?: string;
readonly href?: string;
readonly target?: string;
readonly onAction?: (event: MenuActionEvent) => void;
readonly render?: (props: MenuItemRenderProps) => ReactElement;
readonly className?: string;
readonly style?: CSSProperties;
readonly ref?: Ref<HTMLElement>;
}
| Name | Signature | Description |
|---|---|---|
id | readonly id: string; | Stable key reported in |
childrenoptional | readonly children?: ReactNode; | |
iconoptional | readonly icon?: ReactNode; | |
disabledoptional | readonly disabled?: boolean; | |
textValueoptional | readonly textValue?: string; | |
hrefoptional | readonly href?: string; | Renders |
targetoptional | readonly target?: string; | |
onActionoptional | readonly onAction?: (event: MenuActionEvent) => void; | Runs before the bar's |
renderoptional | readonly render?: (props: MenuItemRenderProps) => ReactElement; | Custom element (router links): |
classNameoptional | readonly className?: string; | |
styleoptional | readonly style?: CSSProperties; | |
refoptional | readonly ref?: Ref<HTMLElement>; |