Inputs

Select

The native select with a masked chevron. For search-as-you-type, use the combobox.

Examples

Select

Anatomy

.selectWrapper that draws the chevron at the end. Required: a <select> cannot draw it itself.
> select.inputThe native select, with its own arrow removed and room left for the chevron.

API

AttributeValuesDescription
disabledbooleanOn the <select>: halves the opacity, as on .input.

Accessibility

  • It is a native <select>, so role, value and keyboard come from the browser. Label it with <label for>.
  • The chevron ignores the pointer, so a click on it reaches the select underneath.
KeyEffect
Space / Alt↓Opens the native list.
↑ / ↓Moves through the options. Native behaviour; whether the list opens first depends on the platform.
Jump to
ProportionFoundations
MaterialFoundations
PresetsFoundations
ShellLayouts · Application
Container and stacksLayouts · Pages
SplitLayouts · Pages
Grid, bento, masonryLayouts · Pages
Switcher and rowLayouts · Pages
↑↓Move↵OpenescClose