-
-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathcheckbox.js
39 lines (36 loc) · 854 Bytes
/
checkbox.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
import React from 'react'
import { Checkbox } from 'react-ui'
import { Page, Section, Props, Badge, Example } from '../../components'
const Documentation = () => {
return (
<Page
title="Checkbox"
tagline="A checkbox component."
badges={[<Badge key={0}>accessible</Badge>]}
>
<Example>
<Example.Preview>
<Checkbox label="Accept" />
</Example.Preview>
<Example.Code>
{`
<Checkbox />
`}
</Example.Code>
</Example>
<Section title="Props">
<Props
props={[
{
name: 'label',
type: 'Text',
description: 'label to be displayed',
default: '<empty>'
}
]}
/>
</Section>
</Page>
)
}
export default Documentation