storybook/docs/snippets/angular/checkbox-story-starter-example.mdx.mdx
2021-11-04 23:51:08 +00:00

24 lines
549 B
Plaintext

```md
<!--- Checkbox.stories.mdx --->
import { Canvas, Meta, Story } from '@storybook/addon-docs';
import { Checkbox } from './checkbox.component';
<Meta title="MDX/Checkbox" component={Checkbox} />
<Canvas>
<Story
name="all checkboxes">
{{
template: `
<form>
<Checkbox id="Unchecked" label="Unchecked" />
<Checkbox id="Checked" label="Checked" checked />
<Checkbox appearance="secondary" id="second" label="Secondary" checked />
</form>
`,
}}
</Story>
</Canvas>
```