View as Markdown

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;
}
RichTextSlashCustomItem members (4)
NameSignatureDescription
idreadonly id: string;
labelreadonly label: string;
keywordsoptionalreadonly keywords?: readonly string[];
onSelectreadonly onSelect: (actions: RichTextEditorActions) => void;