storybook/docs/snippets/react/checkbox-story-csf.js.mdx
2021-08-28 01:52:57 +01:00

22 lines
485 B
Plaintext

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