Sharkey/packages/frontend/src/components/MkCheckbox.stories.ts

22 lines
499 B
TypeScript
Raw Normal View History

import { Meta, StoryObj } from '@storybook/vue3';
2023-03-19 22:22:14 +09:00
import MkCheckbox from './MkCheckbox.vue';
const meta = {
title: 'components/MkCheckbox',
component: MkCheckbox,
} satisfies Meta<typeof MkCheckbox>;
2023-03-19 22:22:14 +09:00
export const Default = {
render(args, { argTypes }) {
return {
components: {
MkCheckbox,
},
props: Object.keys(argTypes),
template: '<MkCheckbox v-bind="$props" />',
};
2023-03-19 22:22:14 +09:00
},
parameters: {
layout: 'centered',
},
} satisfies StoryObj<typeof MkCheckbox>;
2023-03-19 22:22:14 +09:00
export default meta;