2017-10-11 14:01:26 +03:00
|
|
|
```jsx
|
2017-05-18 21:21:33 +03:00
|
|
|
const { ToggleList } = require('./toggle');
|
|
|
|
const FormGroup = require('./group').default;
|
|
|
|
const Legend = require('./legend').default;
|
|
|
|
|
2017-10-10 13:15:35 +03:00
|
|
|
<FormGroup name='who-killed-1'>
|
2017-05-18 21:21:33 +03:00
|
|
|
<Legend>Who killed the radio star?</Legend>
|
|
|
|
<ToggleList>
|
|
|
|
<Toggle value='video' checked>Video</Toggle>
|
|
|
|
<Toggle value='tv'>TV</Toggle>
|
|
|
|
</ToggleList>
|
|
|
|
</FormGroup>
|
|
|
|
```
|
|
|
|
|
2017-10-10 13:15:35 +03:00
|
|
|
#### Toggle > Disabled
|
2017-05-18 21:21:33 +03:00
|
|
|
|
2017-10-11 14:01:26 +03:00
|
|
|
```jsx
|
2017-05-18 21:21:33 +03:00
|
|
|
const { ToggleList } = require('./toggle');
|
|
|
|
const FormGroup = require('./group').default;
|
|
|
|
const Legend = require('./legend').default;
|
|
|
|
|
2017-10-10 13:15:35 +03:00
|
|
|
<FormGroup name='who-killed-2' disabled>
|
2017-05-18 21:21:33 +03:00
|
|
|
<Legend>Who killed the radio star?</Legend>
|
|
|
|
<ToggleList>
|
|
|
|
<Toggle value='video'>Video</Toggle>
|
|
|
|
<Toggle value='tv'>TV</Toggle>
|
|
|
|
</ToggleList>
|
|
|
|
</FormGroup>
|
|
|
|
```
|