View as Markdown

API reference: @salmonui/rich-text

BlockEditorLabelsinterface

import type { BlockEditorLabels } from '@salmonui/rich-text';
interface BlockEditorLabels<T = MentionItem & {
    readonly tone?: string;
}> {
    readonly trigger?: string;
    readonly items: MentionData<T>;
}

Labels: inserted as label atoms. An item's tone colors the label.

BlockEditorLabels members (2)
NameSignatureDescription
triggeroptionalreadonly trigger?: string;

Trigger (default '#').

itemsreadonly items: MentionData<T>;