Skip to content

Commit

Permalink
feat: add InputCheckbox component
Browse files Browse the repository at this point in the history
  • Loading branch information
Federico Zivolo committed Jan 15, 2019
1 parent 3ebf90d commit 8128fbb
Show file tree
Hide file tree
Showing 6 changed files with 635 additions and 0 deletions.
34 changes: 34 additions & 0 deletions packages/react-forms/src/InputCheckbox/InputCheckbox.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
The `InputCheckbox` component provides an API compatible with the [`input[type=checkbox]`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox) HTML element.

```js
<form>
<table className="DemoTable">
<thead>
<tr>
<th />
<th>Checkboxes</th>
</tr>
</thead>
<tbody>
<tr>
<td>On</td>
<td>
<InputCheckbox defaultChecked />
</td>
</tr>
<tr>
<td>Off</td>
<td>
<InputCheckbox />
</td>
</tr>
<tr>
<td>Disabled</td>
<td>
<InputCheckbox disabled />
</td>
</tr>
</tbody>
</table>
</form>
```
Loading

0 comments on commit 8128fbb

Please sign in to comment.