storybook/docs/snippets/angular/checkbox-story-starter-example.mdx.mdx
2021-08-09 19:19:01 +01:00

21 lines
484 B
Plaintext

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