Combobox

inprogress

    Overview

    When to use

    Use the Combobox component when you need a form element that allows users to select from a predefined list of options. It's particularly useful for situations where the list of options is extensive, and filtering or searching is beneficial.

    When to consider an alternative

    If your options are very limited (less than 5), consider using a simple <SelectInput> element instead.

    Selected Items

    A Combobox with name="myCombobox" will generate hidden input elements with the name "myCombobox" for each selected option's value.


    Component

    Default

    Multiple Select

    States

    Programatically open

    No results


    Properties

    Default

    PropertyTypeRequiredDefaultDescription
    utilClassNamesStringfalse-
    childrenNodefalse-
    componentRefShape
    { "current": "Any" }
    false-
    optionsArrayof
    Array<{ "label": "String", "value": "Any", "variant": "'default' │ 'success' │ 'error' │ 'warning' │ 'info' │ 'muted'", "disabled": "Boolean" }>
    true-
    labelStringfalse-
    placeholderStringfalse-
    nameStringtrue-
    disabledBoolfalse-
    errorBoolfalse-
    isLoadingBoolfalse-
    valueArrayof
    Array<String>
    true-
    onChangeFunctrue-
    filterTypeEnum
    "startsWith" │ "contains"
    falsestartsWithExported as Combobox.FilterType.contains etc.
    noResultsMessageStringfalse-