@cfxlabsinc/b2b-services
    Preparing search index...
    type StaticComboboxSingleProps<T> = {
        disabled?: boolean;
        getId: (item: T) => string;
        getLabel: (item: T) => string;
        getSublabel?: (item: T) => string | undefined;
        isOptionDisabled?: (item: T) => boolean;
        matches?: (item: T, query: string) => boolean;
        noun: string;
        onClose?: () => void;
        onSelect: (item: T) => void;
        options: readonly T[];
        placeholder: string;
        renderRow?: (item: T) => ReactNode;
        searchPlaceholder?: string;
        value: string | null;
    }

    Type Parameters

    • T
    Index
    disabled?: boolean
    getId: (item: T) => string
    getLabel: (item: T) => string
    getSublabel?: (item: T) => string | undefined
    isOptionDisabled?: (item: T) => boolean

    Lists a row but refuses selection; see InfiniteComboboxSingleProps.

    matches?: (item: T, query: string) => boolean

    Defaults to matching getLabel + getSublabel.

    noun: string

    Plural noun, e.g. "fee types" — used in empty copy.

    onClose?: () => void
    onSelect: (item: T) => void
    options: readonly T[]

    The full option set, client-held. Keep the array reference stable.

    placeholder: string
    renderRow?: (item: T) => ReactNode
    searchPlaceholder?: string
    value: string | null

    The selected option's id, or null.