misskey/packages/frontend/src/components/MkPageWindow.stories.ts

35 lines
712 B
TypeScript

/* eslint-disable @typescript-eslint/explicit-function-return-type */
/* eslint-disable import/no-default-export */
import { Meta, StoryObj } from '@storybook/vue3';
import MkPageWindow from './MkPageWindow.vue';
const meta = {
title: 'components/MkPageWindow',
component: MkPageWindow,
} satisfies Meta<typeof MkPageWindow>;
export const Default = {
render(args) {
return {
components: {
MkPageWindow,
},
setup() {
return {
args,
};
},
computed: {
props() {
return {
...args,
};
},
},
template: '<MkPageWindow v-bind="props" />',
};
},
parameters: {
layout: 'centered',
},
} satisfies StoryObj<typeof MkPageWindow>;
export default meta;