storybook/docs/snippets/react/checkbox-story-csf.js.mdx
2020-08-14 21:46:15 +01:00

19 lines
415 B
Plaintext

```js
// Checkbox.stories.js
import React from 'react';
import { Checkbox } from './Checkbox';
export default {
title: "MDX/Checkbox",
component: Checkbox
};
export const allCheckboxes = () => (
<form>
<Checkbox id="Unchecked" label="Unchecked" />
<Checkbox id="Checked" label="Checked" checked />
<Checkbox appearance="secondary" id="second" label="Secondary" checked />
</form>
);
```