Trevixal API
    Preparing search index...

    Interface PaletteCommand

    One entry the palette can run. The host decides what is on offer.

    interface PaletteCommand {
        group?: string;
        icon?: IconName;
        isEnabled?: (snapshot: EditorSnapshot) => boolean;
        keywords?: readonly string[];
        label: string;
        name: string;
        run: (editor: Editor) => void;
        shortcut?: string;
    }
    Index
    group?: string

    Group heading, e.g. "Format". Entries keep their given order within one.

    icon?: IconName
    isEnabled?: (snapshot: EditorSnapshot) => boolean
    keywords?: readonly string[]

    Extra words the fuzzy filter should match, e.g. ['h1', 'title'].

    label: string
    name: string
    run: (editor: Editor) => void
    shortcut?: string

    Shown right-aligned. Display only.