# RichTextToolbarCustomItem (@salmonui/rich-text)

> The RichTextToolbarCustomItem interface of @salmonui/rich-text: A custom toolbar item.

Canonical: https://salmonui.dev/docs/reference/rich-text/RichTextToolbarCustomItem

```ts
import type { RichTextToolbarCustomItem } from '@salmonui/rich-text';
```

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

## Reference

Kind: interface

```ts
interface RichTextToolbarCustomItem {
    readonly id: string;
    readonly label: string;
    readonly icon?: ReactNode;
    readonly command?: string;
    readonly onClick?: (actions: RichTextEditorActions) => void;
    readonly pressed?: boolean;
    readonly disabled?: boolean;
}
```

A custom toolbar item.

Members (7):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `id` | `readonly id: string;` |  |  |
| `label` | `readonly label: string;` |  |  |
| `icon` | `readonly icon?: ReactNode;` | optional |  |
| `command` | `readonly command?: string;` | optional | A command or action id run on click (built-in, alias or extension command). |
| `onClick` | `readonly onClick?: (actions: RichTextEditorActions) => void;` | optional |  |
| `pressed` | `readonly pressed?: boolean;` | optional |  |
| `disabled` | `readonly disabled?: boolean;` | optional |  |
