# ToolbarItemProps (@salmonui/navigation/toolbar)

> The ToolbarItemProps interface of @salmonui/navigation/toolbar.

Canonical: https://salmonui.dev/docs/reference/navigation/toolbar/ToolbarItemProps

```ts
import type { ToolbarItemProps } from '@salmonui/navigation/toolbar';
```

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

## Reference

Kind: interface

```ts
interface ToolbarItemProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
    readonly children?: ReactNode | ((size: ToolbarItemSize) => ReactNode);
    readonly sizes?: readonly ToolbarItemSize[] | undefined;
    readonly label?: string | undefined;
    readonly icon?: ReactNode;
    readonly overflow?: OverflowMode | undefined;
    readonly overflowPriority?: number | undefined;
}
```

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `children` | `readonly children?: ReactNode \| ((size: ToolbarItemSize) => ReactNode);` | optional | Content, or a function of the item's current size (`sizes`). |
| `sizes` | `readonly sizes?: readonly ToolbarItemSize[] \| undefined;` | optional | Sizes the item may take, largest first (`'lg' \| 'md' \| 'sm'`). It renders `sizes[0]` until measured; with `overflow="menu"` it steps down by `overflowPriority` before anything overflows. Current size: `data-size` and the function child's argument (`'md'` without `sizes`). |
| `label` | `readonly label?: string \| undefined;` | optional | Text of the item's overflow menu entry (default: the control's `aria-label` or text). |
| `icon` | `readonly icon?: ReactNode;` | optional | Icon of the item's overflow menu entry. |
| `overflow` | `readonly overflow?: OverflowMode \| undefined;` | optional | `'auto'` overflows when space runs out, `'never'` stays, `'always'` lives in the overflow menu. Default `'auto'`, or `'never'` for an item whose content is a form field (it cannot be a menu entry). |
| `overflowPriority` | `readonly overflowPriority?: number \| undefined;` | optional | Higher stays longer (steps down and overflows later) when space runs out. Default 0. |
