API reference: @salmonui/buttons/menu
MenuItemRenderPropstype
import type { MenuItemRenderProps } from '@salmonui/buttons/menu';type MenuItemRenderProps = HTMLAttributes<HTMLElement> & {
readonly ref: (element: HTMLElement | null) => void;
readonly role: string;
readonly tabIndex: number;
readonly 'data-item-id'?: string;
readonly href?: string;
readonly target?: string;
};
Props passed to a custom item element (render): spread them all.
| Name | Signature | Description |
|---|---|---|
tabIndexinherited | tabIndex: number; | |
roleinherited | role: string; | |
refinherited | ref: (element: HTMLElement | null) => void; | Callback ref (assignable to any element's ref). |
data-item-idoptionalinherited | data-item-id?: string; | |
hrefoptionalinherited | href?: string; | |
targetoptionalinherited | target?: string; |