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
Prop | Description | Type | Default |
---|---|---|---|
disabled | apply disabled styles to the select | boolean | |
valid | apply valid or invalid styles to the select | boolean | |
multiple | create a multi option select | boolean |
Customizing
See Customization to learn how to change defaultTheme
styles.