Sharkey/packages/frontend/src/pages/theme-editor.stories.ts

35 lines
709 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 theme_editor from './theme-editor.vue';
const meta = {
title: 'pages/theme-editor',
component: theme_editor,
} satisfies Meta<typeof theme_editor>;
2023-03-19 15:22:14 +02:00
export const Default = {
2023-03-23 09:44:41 +02:00
render(args) {
return {
components: {
theme_editor,
},
2023-03-23 09:44:41 +02:00
setup() {
return {
args,
};
},
computed: {
props() {
return {
...args,
};
},
},
template: '<theme_editor v-bind="props" />',
};
2023-03-19 15:22:14 +02:00
},
parameters: {
layout: 'fullscreen',
},
} satisfies StoryObj<typeof theme_editor>;
2023-03-19 15:22:14 +02:00
export default meta;