treeloom-components
    Preparing search index...

    Type Alias TypeaheadConfig

    What createTypeahead needs to build one.

    type TypeaheadConfig = {
        className?: string;
        label?: string;
        name: string;
        options: TypeaheadOption[];
        placeholder?: string;
        readonly?: boolean;
        value?: string;
    }
    Index
    className?: string
    label?: string

    The field's accessible name: the input gets it as aria-label and the list gets "

    name: string

    The real field name - becomes the select's own name attribute, the field a form actually submits.

    options: TypeaheadOption[]
    placeholder?: string
    readonly?: boolean
    value?: string

    The option.value to start pre-selected, if any.