2017-12-15 16:53:59 +02:00
|
|
|
|
#### Checkbox > Default
|
2017-12-06 17:03:40 +02:00
|
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
|
const React = require('react');
|
|
|
|
|
const { default: FormGroup } = require('./group');
|
|
|
|
|
const { default: Label } = require('./label');
|
2017-12-15 16:53:59 +02:00
|
|
|
|
const { FormLabel, Checkbox } = require('./');
|
2017-12-06 17:03:40 +02:00
|
|
|
|
|
|
|
|
|
<FormGroup name="test">
|
2017-12-15 16:53:59 +02:00
|
|
|
|
<FormLabel style={{ marginBottom: '12px' }}>Label name</FormLabel>
|
2017-12-06 17:03:40 +02:00
|
|
|
|
<Checkbox>
|
2017-12-15 16:53:59 +02:00
|
|
|
|
<Label>Detailed explanations</Label>
|
2017-12-06 17:03:40 +02:00
|
|
|
|
</Checkbox>
|
|
|
|
|
<Checkbox>
|
2017-12-15 16:53:59 +02:00
|
|
|
|
<Label>Tips and tricks</Label>
|
2017-12-06 17:03:40 +02:00
|
|
|
|
</Checkbox>
|
|
|
|
|
<Checkbox>
|
2017-12-15 16:53:59 +02:00
|
|
|
|
<Label>Hints</Label>
|
2017-12-06 17:03:40 +02:00
|
|
|
|
</Checkbox>
|
2017-12-15 16:53:59 +02:00
|
|
|
|
</FormGroup>;
|
2017-05-18 21:21:33 +03:00
|
|
|
|
```
|
2017-12-06 17:03:40 +02:00
|
|
|
|
|
2017-12-15 16:53:59 +02:00
|
|
|
|
#### Checkbox > Active/Focused
|
|
|
|
|
|
2017-12-06 17:03:40 +02:00
|
|
|
|
```jsx
|
2017-10-31 12:03:44 +02:00
|
|
|
|
const React = require('react');
|
|
|
|
|
const { default: FormGroup } = require('./group');
|
|
|
|
|
const { default: Label } = require('./label');
|
2017-12-15 16:53:59 +02:00
|
|
|
|
const { FormLabel, Checkbox } = require('./');
|
2017-05-18 21:21:33 +03:00
|
|
|
|
|
2017-10-23 17:09:49 +03:00
|
|
|
|
<FormGroup name="test">
|
2017-12-15 16:53:59 +02:00
|
|
|
|
<FormLabel style={{ marginBottom: '12px' }}>Label name</FormLabel>
|
2017-10-09 16:35:52 +03:00
|
|
|
|
<Checkbox checked>
|
2017-12-15 16:53:59 +02:00
|
|
|
|
<Label>Detailed explanations</Label>
|
2017-10-09 16:35:52 +03:00
|
|
|
|
</Checkbox>
|
|
|
|
|
<Checkbox checked>
|
2017-12-15 16:53:59 +02:00
|
|
|
|
<Label>Tips and tricks</Label>
|
2017-10-09 16:35:52 +03:00
|
|
|
|
</Checkbox>
|
|
|
|
|
<Checkbox>
|
2017-12-15 16:53:59 +02:00
|
|
|
|
<Label>Hints</Label>
|
2017-10-09 16:35:52 +03:00
|
|
|
|
</Checkbox>
|
2017-12-15 16:53:59 +02:00
|
|
|
|
</FormGroup>;
|
2017-12-06 17:03:40 +02:00
|
|
|
|
```
|
2017-12-15 16:53:59 +02:00
|
|
|
|
|
|
|
|
|
#### Checkbox > Disabled
|
|
|
|
|
|
2017-12-06 17:03:40 +02:00
|
|
|
|
```jsx
|
|
|
|
|
const React = require('react');
|
|
|
|
|
const { default: FormGroup } = require('./group');
|
|
|
|
|
const { default: Label } = require('./label');
|
2017-12-15 16:53:59 +02:00
|
|
|
|
const { FormLabel, Checkbox } = require('./');
|
2017-12-06 17:03:40 +02:00
|
|
|
|
|
|
|
|
|
<FormGroup name="test">
|
2017-12-15 16:53:59 +02:00
|
|
|
|
<FormLabel style={{ marginBottom: '12px' }}>Label name</FormLabel>
|
2017-12-06 17:03:40 +02:00
|
|
|
|
<Checkbox disabled>
|
2017-12-15 16:53:59 +02:00
|
|
|
|
<Label>Detailed explanations</Label>
|
2017-12-06 17:03:40 +02:00
|
|
|
|
</Checkbox>
|
2017-10-09 16:35:52 +03:00
|
|
|
|
<Checkbox disabled>
|
2017-12-15 16:53:59 +02:00
|
|
|
|
<Label>Tips and tricks</Label>
|
2017-12-06 17:03:40 +02:00
|
|
|
|
</Checkbox>
|
|
|
|
|
<Checkbox disabled>
|
2017-12-15 16:53:59 +02:00
|
|
|
|
<Label>Hints</Label>
|
2017-10-09 16:35:52 +03:00
|
|
|
|
</Checkbox>
|
2017-12-15 16:53:59 +02:00
|
|
|
|
</FormGroup>;
|
2017-05-18 21:21:33 +03:00
|
|
|
|
```
|
|
|
|
|
|
2017-12-06 17:03:40 +02:00
|
|
|
|
#### Checkbox > Error
|
2017-05-18 21:21:33 +03:00
|
|
|
|
|
2017-12-06 17:03:40 +02:00
|
|
|
|
```jsx
|
2017-10-31 12:03:44 +02:00
|
|
|
|
const React = require('react');
|
|
|
|
|
const { default: FormMeta } = require('./meta');
|
|
|
|
|
const { default: FormGroup } = require('./group');
|
|
|
|
|
const { default: Label } = require('./label');
|
2017-12-15 16:53:59 +02:00
|
|
|
|
const { FormLabel, Checkbox } = require('./');
|
2017-05-18 21:21:33 +03:00
|
|
|
|
|
2017-12-06 17:03:40 +02:00
|
|
|
|
<FormGroup name="test">
|
2017-12-15 16:53:59 +02:00
|
|
|
|
<FormLabel style={{ marginBottom: '12px' }}>Label name</FormLabel>
|
2017-12-06 17:03:40 +02:00
|
|
|
|
<Checkbox error checked>
|
2017-12-15 16:53:59 +02:00
|
|
|
|
<Label>Detailed explanations</Label>
|
2017-12-06 17:03:40 +02:00
|
|
|
|
</Checkbox>
|
|
|
|
|
<Checkbox checked>
|
2017-12-15 16:53:59 +02:00
|
|
|
|
<Label>Tips and tricks</Label>
|
2017-12-06 17:03:40 +02:00
|
|
|
|
</Checkbox>
|
|
|
|
|
<Checkbox>
|
2017-12-15 16:53:59 +02:00
|
|
|
|
<Label>Hints</Label>
|
2017-12-06 17:03:40 +02:00
|
|
|
|
</Checkbox>
|
2017-12-15 16:53:59 +02:00
|
|
|
|
<FormMeta error>Something’s missing</FormMeta>
|
|
|
|
|
</FormGroup>;
|
2017-05-18 21:21:33 +03:00
|
|
|
|
```
|