platform-bible-utils
    Preparing search index...

    Interface PaletteItem

    One selectable item in a command/marker palette. The dependency-free shared shape consumed by every layer that handles palette items — the renderer overlay service's CommandPaletteItem extends it, platform-bible-react's FootnoteEditor marker palette uses it directly, and extensions build items in this shape — so the item contract exists exactly once.

    Note for passive palettes (driven by forwarded keystrokes rather than their own input): filter matching runs on the RAW label, so passive-palette items must use plain-string labels — a LocalizeKey label would make the on-screen (localized) filtering diverge from the host's commit resolution.

    interface PaletteItem {
        badge?: string;
        description?: string;
        disabled?: boolean;
        id: string;
        label: string;
        muted?: boolean;
    }
    Index

    Properties

    badge?: string

    Optional badge text (e.g. "Deprecated", "End"). Localized when given as a LocalizeKey.

    description?: string

    Secondary description text displayed below the label

    disabled?: boolean

    Whether the item is grayed out and non-selectable. Defaults to false.

    id: string

    Unique identifier returned when this item is selected

    label: string

    Primary display text (e.g. a marker code like "ft" or a command name)

    muted?: boolean

    Whether the item's text is rendered de-emphasized (reduced opacity) while remaining fully selectable — e.g. PT9's grey cue for non-basic markers. Unlike PaletteItem.disabled, a muted item can still be highlighted and selected. Defaults to false.