Skip to content

Listbox

Forms

An inline, always-visible selection list following the WAI-ARIA Listbox pattern. Supports single and multi-select, keyboard navigation, and optional icons/descriptions.

atlas-listbox

Examples

Single and multiple

An always-visible list. With multi , the value is an array.

  • AdministratorFull access
  • EditorCan edit content
  • ViewerRead-only

Role: editor

  • AdministratorFull access
  • EditorCan edit content
  • ViewerRead-only

Roles: viewer

Descriptions and icons

Options can carry an icon and a description line under the label. A disabled option is skipped by the arrow keys.

  • FreeOne project, community support
  • TeamUnlimited projects, 10 members
  • EnterpriseContact sales to enable

Plan: team

Horizontal, no wrapping

orientation="horizontal" lays the options out in a row and moves with Left/Right. With [wrap]="false" the arrow keys stop at the first and last option instead of cycling.

  • XS
  • S
  • M
  • L
  • XL

Size: M

API

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

AtlasListboxComponent atlas-listbox

InputTypeDefaultDescription
options requiredListboxOption[]— The options, with optional description and icon ; disabled options cannot be chosen.
value two-waystring | string[]'' The selected value, or the selected values with multi (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] .
multi booleanfalse Allows several selected options; value is then an array. Space toggles the focused option.
orientation 'vertical' | 'horizontal''vertical' Layout and arrow keys: Up/Down for vertical , Left/Right for horizontal (options wrap onto lines).
wrap booleantrue Whether arrow keys wrap from the last option to the first and back.
ariaLabel string | undefinedundefined Accessible name when no visible label names the listbox (use one or the other, WCAG 2.5.3).
ariaLabelledBy string | undefinedundefined Id(s) of the element(s) that name the listbox; inside atlas-form-field the field label.
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

ListboxOption

PropertyTypeDescription
value string —
label string —
description? string —
disabled? boolean —
icon? string —