# SidebarMenuItem (@salmonui/navigation/sidebar-menu)

> The SidebarMenuItem interface of @salmonui/navigation/sidebar-menu: A link, an action or a submenu.

Canonical: https://salmonui.dev/docs/reference/navigation/sidebar-menu/SidebarMenuItem

```ts
import type { SidebarMenuItem } from '@salmonui/navigation/sidebar-menu';
```

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

## Reference

Kind: interface

```ts
interface SidebarMenuItem {
    readonly id: string;
    readonly label: ReactNode;
    readonly textValue?: string | undefined;
    readonly icon?: ReactNode;
    readonly href?: string | undefined;
    readonly children?: readonly SidebarMenuItem[] | undefined;
    readonly disabled?: boolean | undefined;
    readonly badge?: ReactNode;
    readonly type?: 'item' | undefined;
}
```

A link, an action or a submenu.

Members (9):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `id` | `readonly id: string;` |  | Stable, unique id (the selection and expansion key). |
| `label` | `readonly label: ReactNode;` |  |  |
| `textValue` | `readonly textValue?: string \| undefined;` | optional | Plain text of `label` when it is not a string: the rail fallback icon and development messages. |
| `icon` | `readonly icon?: ReactNode;` | optional | Decorative icon (`aria-hidden`); in the collapsed rail it is all that shows. |
| `href` | `readonly href?: string \| undefined;` | optional | Renders a link (through `renderLink` when given). Ignored on an item with `children`. |
| `children` | `readonly children?: readonly SidebarMenuItem[] \| undefined;` | optional | Nested items: the item becomes a disclosure button for a submenu. |
| `disabled` | `readonly disabled?: boolean \| undefined;` | optional |  |
| `badge` | `readonly badge?: ReactNode;` | optional | Trailing content (a count, a status dot); part of the accessible name. |
| `type` | `readonly type?: 'item' \| undefined;` | optional |  |
