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

24 lines
695 B
TypeScript
Raw Normal View History

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