-
-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathradio.js
73 lines (70 loc) · 1.94 KB
/
radio.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import React from 'react'
import { Radio } from 'react-ui'
import { Table, Page, Section, Props, Badge, Example } from '../../components'
const Documentation = () => {
return (
<Page
title="Radio"
tagline="A radio component."
badges={[<Badge key={0}>accessible</Badge>]}
>
<Example>
<Example.Preview>
<Radio label="Normal" value="Normal" />
</Example.Preview>
<Example.Code>
{`
<Radio label="Normal" value="Normal" />
`}
</Example.Code>
<Example.Preview>
<Radio label="Disabled" value="Disabled" disabled />
</Example.Preview>
<Example.Code>
{`
<Radio label="Disabled" value="Disabled" disabled />
`}
</Example.Code>
<Example.Preview>
<Radio label="Default Checked" value="Default" checked />
</Example.Preview>
<Example.Code>
{`
<Radio label="Default Checked" value="Default" checked />
`}
</Example.Code>
</Example>
<Section title="Props">
<Props
props={[
{
name: 'label',
type: 'Text',
description: 'label to be displayed',
default: '<empty>'
},
{
name: 'value',
type: 'Text',
description: 'value associated to the radio button',
default: '<empty>'
},
{
name: 'disabled',
type: 'Boolean',
description: 'Radio button disabled: true or false',
default: '<empty>'
},
{
name: 'checked',
type: 'Boolean',
description: 'Default behaviour checked or not',
default: '<empty>'
}
]}
/>
</Section>
</Page>
)
}
export default Documentation