# DataGridToolbarItem (@salmonui/data-grid)

> The DataGridToolbarItem interface of @salmonui/data-grid: A toolbar item. An object whose id is a built-in id keeps the built-in behavior (use it to change the label, icon, or alignment of a built-in). disabled is reactive.

Canonical: https://salmonui.dev/docs/reference/data-grid/DataGridToolbarItem

```ts
import type { DataGridToolbarItem } from '@salmonui/data-grid';
```

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

## Reference

Kind: interface

```ts
interface DataGridToolbarItem {
    readonly id: string;
    readonly label?: string;
    readonly icon?: ReactNode;
    readonly title?: string;
    readonly align?: 'start' | 'center' | 'end';
    readonly disabled?: boolean;
    readonly render?: (ctx: {
        readonly disabled: boolean;
    }) => ReactNode;
}
```

A toolbar item. An object whose `id` is a built-in id keeps the built-in
behavior (use it to change the label, icon, or alignment of a built-in).
`disabled` is reactive.

Members (7):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `id` | `readonly id: string;` |  |  |
| `label` | `readonly label?: string;` | optional | Button text; for a `render` item its accessible name and overflow menu text (development builds warn when a `render` item has neither `label` nor `title`). |
| `icon` | `readonly icon?: ReactNode;` | optional |  |
| `title` | `readonly title?: string;` | optional | Tooltip (`title`). |
| `align` | `readonly align?: 'start' \| 'center' \| 'end';` | optional |  |
| `disabled` | `readonly disabled?: boolean;` | optional |  |
| `render` | `readonly render?: (ctx: {     readonly disabled: boolean; }) => ReactNode;` | optional | Custom content; the item keeps its roving tab stop. |
