Select
A form control that provides a dropdown menu of options
Installation
Install
yarn add @iag/chroma-react-ui.components
Import
import { Select } from '@iag/chroma-react-ui.components';
Accessibility
Accessibility documentation(opens in new window)Default
Disabled
Error
Widths
Properties
Name
Description
- classNamestringAdditional CSS classes to be applied
- disabledbooleanBoolean indicating if the input is disabled
- errorbooleanBoolean indicating if the input is in an error state
- idstringHTML id attribute for the Input
- namestringHTML name attribute for the input
- onChange*(e: React.ChangeEvent<HTMLSelectElement>) => voidFunction to be called when the input value changes
- options*IOptions[]An Array of objects { label:string, value:string }
- validbooleanBoolean indicating if the input is in a valid state
- valuestringThe input value
- sizeSizeSet the size of the input (1-4)