Vivid Logo Vivid

Select

Select lets users choose one option from an options menu. Consider using select when you have 4 or more options to choose from.

Validation

In a Form

When a Select is placed inside a form element and validation logic is set on the Select component, the Select is validated when the form is submitted (as per a native select element).

Below, the "Title" field Select is marked as required and is validated when the form is submitted.

Single Field

The Select component can be validated like the native select element.

Below, the Select is required but it has no selected option. The checkedValidity() method is called on the Select to validate it.

International Phone Number

The Select component is used in the example below as the dialing code part of an international phone number input field.

Call Status

User Selection

The Select component can be used Avatar to implement a user selector.