# RichTextExtensionToolbarItem (@salmonui/rich-text)

> The RichTextExtensionToolbarItem interface of @salmonui/rich-text: A toolbar item an extension contributes (toolbar refers to it by id).

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

```ts
import type { RichTextExtensionToolbarItem } 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 RichTextExtensionToolbarItem {
    readonly id: string;
    readonly label: string;
    readonly command: string;
    readonly icon?: unknown;
}
```

A toolbar item an extension contributes (`toolbar` refers to it by `id`).

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `id` | `readonly id: string;` |  |  |
| `label` | `readonly label: string;` |  |  |
| `command` | `readonly command: string;` |  | Command id (an extension or built-in command) run on click. |
| `icon` | `readonly icon?: unknown;` | optional |  |
