# SubmenuProps (@salmonui/buttons/menu)

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

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

```ts
import type { SubmenuProps } 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 SubmenuProps extends Omit<ItemCommonProps, 'children' | 'onClick'> {
    readonly id?: string;
    readonly label: ReactNode;
    readonly children?: ReactNode;
    readonly menuClassName?: string;
    readonly menuStyle?: CSSProperties;
}
```

Members (11):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `id` | `readonly id?: string;` | optional | 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. |
| `children` | `readonly children?: ReactNode;` | optional | The submenu entries. |
| `menuClassName` | `readonly menuClassName?: string;` | optional | Class name and style of the submenu popup. |
| `menuStyle` | `readonly menuStyle?: CSSProperties;` | optional |  |
| `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 |  |
