mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 03:21:49 +08:00
22 lines
451 B
Plaintext
22 lines
451 B
Plaintext
```js
|
|
// Checkbox.stories.js
|
|
|
|
import Checkbox from './Checkbox.vue';
|
|
|
|
export default {
|
|
component: Checkbox,
|
|
};
|
|
|
|
export const allCheckboxes = () => {
|
|
render: () => ({
|
|
components: { Checkbox },
|
|
template: `
|
|
<form>
|
|
<Checkbox id="Unchecked" label="Unchecked"/>
|
|
<Checkbox id="Checked" label="Checked" checked />
|
|
<Checkbox appearance="secondary" id="second" label="Secondary" checked />
|
|
</form>`,
|
|
});
|
|
};
|
|
```
|