@dxos/react-ui
    Preparing search index...
    RootProps: ThemedClassName<
        Omit<ComboboxPrimitive.RootProps<Option>, "collection">,
    > & {
        createIcon?: string;
        createLabel?: (query: string) => string;
        filter?: Filter | null;
        items: Option[];
        loading?: boolean;
        onCreate?: (query: string) => void;
    }

    Type declaration

    • OptionalcreateIcon?: string

      The create row's icon; a plus by default.

    • OptionalcreateLabel?: (query: string) => string

      The create row's text for the query (e.g. Add tag “{query}”); Create “{query}” by default.

    • Optionalfilter?: Filter | null

      Keeps an option while the user types query; defaults to a case-insensitive substring match on the label. null keeps every item, for results the caller loads for the query (onInputValueChange).

    • items: Option[]
    • Optionalloading?: boolean

      Results are loading: the popup shows a spinner row instead of its empty state, and the button trigger is busy.

    • OptionalonCreate?: (query: string) => void

      Offers a create row while the typed query matches no label exactly; choosing it calls this instead of selecting.