Skip to content

Combobox

Forms

A searchable select component that combines a trigger button with a filterable dropdown. Ideal for large option sets where users need to type-to-filter (countries, users, SKUs, etc.).

atlas-combobox

Examples

Searchable

Type to filter the options; the empty text shows when nothing matches.

Value: —

With Signal Forms

Bind the combobox with [formField] : required state, errors and touched come from the form. In atlas-form-field the label names it and the error describes it.

Type to filter the list.

Search texts and disabled options

searchPlaceholder and emptyText replace the configured search texts for one combobox (set them app-wide in the config). Disabled options are listed but cannot be chosen.

API

Generated from the library source, so it always matches the code.

AtlasComboboxComponent atlas-combobox

InputTypeDefaultDescription
options requiredComboboxOption[]— The options to search and choose from; disabled options cannot be chosen.
value two-waystring'' The selected option value ; '' when nothing is selected (two-way, or Signal Forms [field] ).
disabled booleanfalse Disables the control. Set automatically when the control is bound with Signal Forms [field] .
errors readonly ValidationError.WithOptionalFieldTree[][] Validation errors of the bound field. Set by Signal Forms [field] .
required booleanfalse Whether a value is required. Set by Signal Forms [field] .
invalid booleanfalse Whether the field is invalid. Set by Signal Forms [field] .
touched booleanfalse Whether the user has interacted with the field. Set by Signal Forms [field] .
readonly booleanfalse Whether the field is read-only. Set by Signal Forms [field] .
pending booleanfalse Whether async validation is running. Set by Signal Forms [field] .
name string'' Name of the field. Set by Signal Forms [field] .
placeholder string | undefinedundefined Trigger text when nothing is selected. Defaults to the configured select.placeholder .
searchPlaceholder string | undefinedundefined Placeholder of the search field. Defaults to the configured combobox.searchPlaceholder .
emptyText string | undefinedundefined Message when nothing matches (announced). Defaults to the configured combobox.emptyText .
ariaLabel string | nullnull Accessible name when no visible label names the control (use one or the other, WCAG 2.5.3).
inputId string | undefinedundefinedid of the focusable element, so a visible <label atlasLabel for="…"> names it. Inside atlas-form-field the field supplies one.
ariaDescribedBy string | nullnull Extra ids for aria-describedby , merged with the surrounding form field's hint or error.
class string'' Extra CSS classes, merged with the component's own through cn() ; yours win on conflicts.
OutputPayloadDescription
touchvoid Emits when the control loses focus, so Signal Forms marks the field touched.

Types

ComboboxOption

PropertyTypeDescription
value string Unique value for the option
label string Display label
disabled? boolean Whether the option is disabled