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

20 lines
438 B
Plaintext

```js
// Checkbox.stories.js
import Checkbox from "./Checkbox.vue";
export default {
title: 'MDX/Checkbox',
component: Checkbox,
};
export const allCheckboxes = () => ({
components: { Checkbox },
template: `
<form>
<Checkbox id="Unchecked" label="Unchecked"/>
<Checkbox id="Checked" label="Checked" checked />
<Checkbox appearance="secondary" id="second" label="Secondary" checked />
</form>`,
});
```