import { Select } from '@sky-uk/ui-core';
For fully composed form element examples see Field.

Select is a form component that maps closely to the native select element and supports all of the same attributes. (See MDN).

The component contains a Select.Option sub component. This maps closely to the native option element and supports all of the same attributes. (See MDN).

Props

state

state can be confirmed or error.

icon

The functionality to display icons inside the component has been deprecated.

System Modifiers

The Select component also accepts props applied using the following system modifiers:

Field

You can combine the Select component with the Field component to add information like label and validation message.

Accessibility

Please refer to the W3C Forms Concepts guide when working with forms.