storybook/docs/snippets/angular/checkbox-story-starter-example.mdx.mdx
2021-08-08 18:33:11 +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>
```