Skip to main content

Basic

A native select with a chevron icon. options lists the choices as { text, value }; placeholder adds a disabled first option that asks for a choice.

Where your company is registered.

Hint

A question-mark button next to the label opens a short hint, the same as on the input and the textarea.

Optional.

Sizes

Three sizes: small, medium and large. Medium is 40 px high, the same as a medium button and the input.

Groups

Write option and optgroup elements in the slot to group long lists; they replace options. The group name is not selectable.

Multiple

multiple shows a list of visible rows (4 by default), with no chevron. value takes an array of the selected values.

Hold Ctrl (Cmd on Mac) to choose more than one.

States

A disabled select is skipped by the keyboard. A select has no read-only state, so use disabled. value selects the option with that value. With required and a placeholder, the browser blocks the form until a choice is made.

Validation

required with a placeholder lets the browser check the choice when the form is sent. error shows a message at once and sets aria-invalid="true", for an error the server returns.

Pick the plan you want to start with.

Europe is full. Choose another region.