Select Test

Single and multiple choice from a known set. Uses a popover listbox with optional filtering, grouping, and tag display.

Closed (default)

A basic single-select in its resting state.

Open

Click the trigger to open the listbox. Options are rendered as rows.

Open with Groups

Options with data-group render under group headings in first-appearance order.

Filtering

With 12+ options, a filter input appears automatically. Type to narrow results.

Multiple with Tags

In multiple mode, selected values appear as tags (up to the tag-threshold).

Multiple Count (above tag-threshold)

When selections exceed tag-threshold (default 3), the trigger shows "N selected".

Empty Filter Result

When the filter matches no options, an empty state message is shown.

All Sizes

Three size variants: sm, md (default), and lg.

Invalid

An invalid state with a custom error message.

Disabled

A disabled select cannot be interacted with.

Flipped Up (placement top)

When placement="top", the listbox opens above the trigger.

Dark Theme

The select in dark theme. All colors resolve through theme tokens.

Native reporting fieldset state

The fieldset supplies the group name and ancestor disabled state. Writing disabled=false to a child cannot bypass its disabled parent; the current value survives disabling and re-enabling.

Reporting snapshot

Reporting fieldset is enabled.