Sharkey/packages/frontend/src/pages/_empty_.stories.ts

35 lines
669 B
TypeScript
Raw Normal View History

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