Skip to main content
tc

Stylable select

Customizable <select> (base-select) with native fallback proof.

About this page

Selects below marked Stylable opt into the customizable <select> API (appearance: base-select plus a <button><selectedcontent> structure inside the select, styled by .tc-select from templates/custom.css). Supporting engines render a fully styleable picker; non-supporting engines (Firefox) ignore the opt-in markers and render the same <select> natively — progressive enhancement with no breaking change.

Compare each Stylable example against its native counterpart: both must remain usable, aligned, and free of overflow in every engine.

# Stylable select (flat options)

Flat option list with a pre-selected value — the base-select path:

Deploy target for new workloads.

# Stylable select (option groups)

Optgroups render inside the customizable picker the same way they do natively:

# Stylable select (validation error)

Error styling and the .tc-select border compose through the standard aria-invalid path:

# Native select (comparison)

The same select without Stylable — this is exactly what non-supporting engines show for the examples above:

Fallback behaviour

  • Supporting engines (Chromium, Safari): the picker is styleable via .tc-select, including the ::picker-icon and ::picker(select) pseudo-elements.
  • Firefox: appearance: base-select is unsupported (Mozilla bugs 1944403 and 1958443, unshipped as of 2026-10). The inner <button><selectedcontent> structure is ignored per HTML spec and the select renders fully native.
  • Both paths share one DOM and one accessibility tree — the label, help text, and error wiring are identical, so the cross-engine difference is purely visual.
Selects stay keyboard-operable natively in every engine.