# MenubarItemProps (@salmonui/buttons/menu)

> The MenubarItemProps interface of @salmonui/buttons/menu.

Canonical: https://salmonui.dev/docs/reference/buttons/menu/MenubarItemProps

```ts
import type { MenubarItemProps } from '@salmonui/buttons/menu';
```

Entry index: https://salmonui.dev/docs/reference/buttons/menu (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/buttons/menu.md).

## Reference

Kind: interface

```ts
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>;
}
```

Members (12):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `id` | `readonly id: string;` |  | Stable key reported in `onAction`. |
| `children` | `readonly children?: ReactNode;` | optional |  |
| `icon` | `readonly icon?: ReactNode;` | optional |  |
| `disabled` | `readonly disabled?: boolean;` | optional |  |
| `textValue` | `readonly textValue?: string;` | optional |  |
| `href` | `readonly href?: string;` | optional | Renders `<a role="menuitem" href>`. |
| `target` | `readonly target?: string;` | optional |  |
| `onAction` | `readonly onAction?: (event: MenuActionEvent) => void;` | optional | Runs before the bar's `onAction`; `event.preventDefault()` stops link navigation. |
| `render` | `readonly render?: (props: MenuItemRenderProps) => ReactElement;` | optional | Custom element (router links): `render={(props) => <Link {...props} to="/help" />}`; spread every prop. |
| `className` | `readonly className?: string;` | optional |  |
| `style` | `readonly style?: CSSProperties;` | optional |  |
| `ref` | `readonly ref?: Ref<HTMLElement>;` | optional |  |
