@rocketsofawesome/mirage
Version:
[Live Demo of the Pattern Library](https://rocketsofawesome.github.io/mirage/)
47 lines (43 loc) • 706 B
Markdown
#### Default State
```js
<Select
label='City'
options={[
{ value: 'NY', text: 'New York' },
{ value: 'CA', text: 'California' }
]}
/>
```
#### Active State
```js
<Select
label='City'
options={[
{ value: 'NY', text: 'New York' },
{ value: 'CA', text: 'California' }
]}
active={true}
/>
```
#### Error State
```js
<Select
label='City'
options={[
{ value: 'NY', text: 'New York' },
{ value: 'CA', text: 'California' }
]}
error='This field is required'
touched={true}
active={false}
/>
```
#### Without Label
```js
<Select
options={[
{ value: 'NY', text: 'New York' },
{ value: 'CA', text: 'California' }
]}
/>
```