Skip to content

Select

Forms

A selection dropdown with keyboard navigation and disabled options. When a value is selected, an inline clear (x) button appears in the trigger so the selection can be removed without reopening the dropdown.

atlas-select

Examples

Basic

Options are data; disabled options are skipped by the keyboard. Bind [(value)] .

Value: —

With Signal Forms

Every Atlas form control is a Signal Forms control: bind [formField] and the field state (value, required, invalid, touched) flows in.

Country

Ghost variant, disabled options, no clear button

variant="ghost" drops the border for toolbars and dense headers. Disabled options stay visible but cannot be chosen; [clearable]="false" removes the clear button when a value is always required.

Quarterly report

Period: q3

API

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

AtlasSelectComponent atlas-select

InputTypeDefaultDescription
options requiredSelectOption[]— The options; disabled options are shown but 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 Text shown when nothing is selected. Defaults to the configured select.placeholder .
variant 'default' | 'ghost''default'default has a border and background; ghost is borderless, for toolbars and dense headers.
clearable booleantrue Shows the clear control while a value is selected. Turn it off when an empty value is not valid.
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

SelectOption

PropertyTypeDescription
value string —
label string —
disabled? boolean —