Trevixal API
    Preparing search index...

    Interface SelectControlOptions

    interface SelectControlOptions {
        ariaLabel: string;
        document: Document;
        onSelect: (value: string) => void;
        optionKey?: (value: string) => string;
        options: readonly SelectOption[] | (() => readonly SelectOption[]);
        placeholder: string;
        valueOf: (snapshot: EditorSnapshot) => string | null;
        width?: string;
    }
    Index
    ariaLabel: string
    document: Document
    onSelect: (value: string) => void
    optionKey?: (value: string) => string

    The catalogue key a choice is translated under, where the same choice has one already: the Format menu's menu.styleHeading1 for Heading 1.

    options: readonly SelectOption[] | (() => readonly SelectOption[])

    The choices. A function is asked again each time the list opens, for a list that grows while the editor is up: a font added to the font select.

    placeholder: string
    valueOf: (snapshot: EditorSnapshot) => string | null

    Current value from the snapshot; null shows the placeholder.

    width?: string

    Fixed trigger width, e.g. "7.5rem", so the toolbar does not reflow.