Select

Select input

Import

import { Select } from '@windmill/react-ui'

Base

The default base select doesn't need any special prop, but all attributes that you would usually use in normal HTML are available here too. Note that if you're not using a Label component (not recommended), you should use an aria-label attribute to give screen readers a label.

live editor

Multiple

A multi select is created including the multiple prop to the Select.

live editor

Disabled

The disabled prop applies disabled styles to the select.

live editor

Valid

The valid prop applies valid styles to the select.

live editor

Invalid

Give a value of false to the valid prop to apply invalid styles to the select.

live editor

Props overview

PropDescriptionTypeDefault
disabledapply disabled styles to the selectboolean
validapply valid or invalid styles to the selectboolean
multiplecreate a multi option selectboolean

Customizing

See Customization to learn how to change defaultTheme styles.