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.
| Name | Signature | Description |
|---|---|---|
triggeroptional | readonly trigger?: string; | Trigger (default |
items | readonly items: MentionData<T>; |