# BlockEditorCustomItem (@salmonui/rich-text)

> The BlockEditorCustomItem interface of @salmonui/rich-text: A custom entry of the slash menu, block action menu, context menu or inline toolbar.

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

```ts
import type { BlockEditorCustomItem } 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 BlockEditorCustomItem {
    readonly id: string;
    readonly label: string;
    readonly keywords?: readonly string[];
    readonly group?: string;
    readonly disabled?: boolean;
    readonly onSelect: (context: BlockEditorItemContext) => void;
}
```

A custom entry of the slash menu, block action menu, context menu or inline toolbar.

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `id` | `readonly id: string;` |  |  |
| `label` | `readonly label: string;` |  |  |
| `keywords` | `readonly keywords?: readonly string[];` | optional | Extra search words (slash menu). |
| `group` | `readonly group?: string;` | optional | Group heading in the slash menu (default: the built-in groups). |
| `disabled` | `readonly disabled?: boolean;` | optional |  |
| `onSelect` | `readonly onSelect: (context: BlockEditorItemContext) => void;` |  |  |
