Trevixal API
    Preparing search index...

    Interface CommandPaletteOptions

    interface CommandPaletteOptions {
        bindShortcuts?: boolean;
        commands: readonly PaletteCommand[] | (() => readonly PaletteCommand[]);
        container?: HTMLElement;
        emptyLabel?: string;
        maxResults?: number;
        onRecent?: (recent: readonly string[]) => void;
        placeholder?: string;
        recent?: readonly string[];
        recentLabel?: string;
    }
    Index
    bindShortcuts?: boolean

    Bind Ctrl/Cmd+K and Ctrl/Cmd+Shift+P (default true).

    commands: readonly PaletteCommand[] | (() => readonly PaletteCommand[])

    The commands on offer. The palette never invents its own.

    Pass a function to have them collected each time the palette opens, needed when the source is built after the palette itself, and it keeps a derived list (see paletteCommandsFromMenus) current.

    container?: HTMLElement

    Where the overlay is appended (default: the document body).

    emptyLabel?: string
    maxResults?: number

    Cap on rendered rows (default 50). The filter runs over everything.

    onRecent?: (recent: readonly string[]) => void

    Called with the updated list each time a command runs.

    placeholder?: string
    recent?: readonly string[]

    Names of the commands run last, newest first, listed before everything else until something is typed. Pass what onRecent last reported to keep them from one session to the next.

    recentLabel?: string

    Heading over the recent commands (default "Recently used").