Select
Use a select input when a user needs to select one option from a long list
OptGroup
labels are not accessible to all screen readers, so they cannot convey critical information just information that improves usability.
Name | Type | Default | Description |
---|---|---|---|
block | boolean | false | Creates a full width input element |
contrast | boolean | false | Changes background color to a higher contrast color |
placeholder | string | Placeholder text to show when no option is selected. <br /> This option is hidden from the dropdown menu when the 'required' prop is set | |
size | 'small' | 'medium' | 'large' | Creates a smaller or larger input than the default. | |
validationStatus | 'error' | 'success' | Style the input to match the status |