@yarcl/react
    Preparing search index...

    Interface CommandPaletteCommand

    A command shown in a CommandPalette.

    interface CommandPaletteCommand {
        disabled?: boolean;
        group?: string;
        icon?: ReactNode;
        id: string;
        keywords?: readonly string[];
        label: string;
        onSelect?: () => void;
        shortcut?: string;
    }
    Index
    disabled?: boolean

    Shows the command but prevents choosing it.

    group?: string

    Heading of the group the command is listed under. Groups appear in the order they're first used.

    icon?: ReactNode

    An icon shown before the label.

    id: string

    Unique id of the command.

    keywords?: readonly string[]

    Extra words the search matches, e.g. synonyms.

    label: string

    Text shown in the list and matched by the search.

    onSelect?: () => void

    Called when the command is chosen. The palette closes first.

    shortcut?: string

    Keyboard shortcut hint shown next to the label, e.g. 'Mod+S', or 'G D' for a sequence. Mod is ⌘ on Apple devices and Ctrl elsewhere. Only a hint: bind the shortcut yourself.