# MenuCheckboxItemProps (@salmonui/buttons/menu)

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

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

```ts
import type { MenuCheckboxItemProps } 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 MenuCheckboxItemProps extends ItemCommonProps {
    readonly id?: string;
    readonly checked?: boolean;
    readonly defaultChecked?: boolean;
    readonly onCheckedChange?: (checked: boolean, event: MenuChangeEvent) => void;
    readonly onAction?: (event: MenuActionEvent) => void;
}
```

Members (13):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `id` | `readonly id?: string;` | optional | Item key reported in `onAction` (optional). |
| `checked` | `readonly checked?: boolean;` | optional |  |
| `defaultChecked` | `readonly defaultChecked?: boolean;` | optional |  |
| `onCheckedChange` | `readonly onCheckedChange?: (checked: boolean, event: MenuChangeEvent) => void;` | optional |  |
| `onAction` | `readonly onAction?: (event: MenuActionEvent) => void;` | optional | Runs after the toggle; `event.preventDefault()` keeps the menu open. Space always keeps it open. |
| `children` | `children?: ReactNode;` | optional, inherited |  |
| `icon` | `icon?: ReactNode;` | optional, inherited | Decorative leading icon (`aria-hidden`). |
| `disabled` | `disabled?: boolean;` | optional, inherited | Skipped by arrow keys and typeahead; `aria-disabled="true"`. |
| `textValue` | `textValue?: string;` | optional, inherited | Typeahead text when the children are not plain text. |
| `className` | `className?: string;` | optional, inherited |  |
| `style` | `style?: CSSProperties;` | optional, inherited |  |
| `ref` | `ref?: Ref<HTMLElement>;` | optional, inherited |  |
| `onClick` | `onClick?: ((event: MouseEvent<HTMLElement, MouseEvent>) => void);` | optional, inherited |  |
