2017-10-11 14:01:26 +03:00
|
|
|
```jsx
|
2017-10-31 12:03:44 +02:00
|
|
|
const React = require('react');
|
2017-05-18 21:21:33 +03:00
|
|
|
const { ToggleList } = require('./toggle');
|
2017-10-31 12:03:44 +02:00
|
|
|
const { default: FormGroup } = require('./group');
|
|
|
|
const { default: Legend } = require('./legend');
|
|
|
|
const { default: Toggle } = require('./toggle');
|
2017-05-18 21:21:33 +03:00
|
|
|
|
2017-10-12 21:15:51 +03:00
|
|
|
<FormGroup name="who-killed-1">
|
2017-05-18 21:21:33 +03:00
|
|
|
<Legend>Who killed the radio star?</Legend>
|
|
|
|
<ToggleList>
|
2017-10-12 21:15:51 +03:00
|
|
|
<Toggle value="video" checked>
|
|
|
|
Video
|
|
|
|
</Toggle>
|
|
|
|
<Toggle value="tv">TV</Toggle>
|
2017-05-18 21:21:33 +03:00
|
|
|
</ToggleList>
|
2017-10-12 21:15:51 +03:00
|
|
|
</FormGroup>;
|
2017-05-18 21:21:33 +03:00
|
|
|
```
|
|
|
|
|
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-10-31 12:03:44 +02:00
|
|
|
const React = require('react');
|
2017-05-18 21:21:33 +03:00
|
|
|
const { ToggleList } = require('./toggle');
|
2017-10-31 12:03:44 +02:00
|
|
|
const { default: FormGroup } = require('./group');
|
|
|
|
const { default: Legend } = require('./legend');
|
|
|
|
const { default: Toggle } = require('./toggle');
|
2017-05-18 21:21:33 +03:00
|
|
|
|
2017-10-12 21:15:51 +03:00
|
|
|
<FormGroup name="who-killed-2" disabled>
|
2017-05-18 21:21:33 +03:00
|
|
|
<Legend>Who killed the radio star?</Legend>
|
|
|
|
<ToggleList>
|
2017-10-12 21:15:51 +03:00
|
|
|
<Toggle value="video">Video</Toggle>
|
|
|
|
<Toggle value="tv">TV</Toggle>
|
2017-05-18 21:21:33 +03:00
|
|
|
</ToggleList>
|
2017-10-12 21:15:51 +03:00
|
|
|
</FormGroup>;
|
2017-05-18 21:21:33 +03:00
|
|
|
```
|