API reference: @salmonui/rich-text
RichTextSlashCustomIteminterface
import type { RichTextSlashCustomItem } from '@salmonui/rich-text';interface RichTextSlashCustomItem {
readonly id: string;
readonly label: string;
readonly keywords?: readonly string[];
readonly onSelect: (actions: RichTextEditorActions) => void;
}
| Name | Signature | Description |
|---|---|---|
id | readonly id: string; | |
label | readonly label: string; | |
keywordsoptional | readonly keywords?: readonly string[]; | |
onSelect | readonly onSelect: (actions: RichTextEditorActions) => void; |