paricafe/packages/frontend/src/widgets/WidgetPostForm.stories.ts

35 lines
725 B
TypeScript
Raw Normal View History

2023-03-21 10:25:17 -05:00
/* eslint-disable @typescript-eslint/explicit-function-return-type */
/* eslint-disable import/no-default-export */
import { Meta, StoryObj } from '@storybook/vue3';
2023-03-19 08:22:14 -05:00
import WidgetPostForm from './WidgetPostForm.vue';
const meta = {
title: 'widgets/WidgetPostForm',
component: WidgetPostForm,
} satisfies Meta<typeof WidgetPostForm>;
2023-03-19 08:22:14 -05:00
export const Default = {
2023-03-23 02:44:41 -05:00
render(args) {
return {
components: {
WidgetPostForm,
},
2023-03-23 02:44:41 -05:00
setup() {
return {
args,
};
},
computed: {
props() {
return {
...args,
};
},
},
template: '<WidgetPostForm v-bind="props" />',
};
2023-03-19 08:22:14 -05:00
},
parameters: {
layout: 'centered',
},
} satisfies StoryObj<typeof WidgetPostForm>;
2023-03-19 08:22:14 -05:00
export default meta;