storybook/docs/snippets/react/checkbox-story-csf.js.mdx
2021-02-23 00:26:03 +00:00

20 lines
411 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>
);
```