mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-15 08:33:09 +02:00
31 lines
610 B
TypeScript
31 lines
610 B
TypeScript
|
/* eslint-disable @typescript-eslint/explicit-function-return-type */
|
||
|
/* eslint-disable import/no-default-export */
|
||
|
/* eslint-disable import/no-duplicates */
|
||
|
import { StoryObj } from '@storybook/vue3';
|
||
|
import MkButton from './MkButton.vue';
|
||
|
export const Default = {
|
||
|
render(args) {
|
||
|
return {
|
||
|
components: {
|
||
|
MkButton,
|
||
|
},
|
||
|
setup() {
|
||
|
return {
|
||
|
args,
|
||
|
};
|
||
|
},
|
||
|
computed: {
|
||
|
props() {
|
||
|
return {
|
||
|
...this.args,
|
||
|
};
|
||
|
},
|
||
|
},
|
||
|
template: '<MkButton v-bind="props">Text</MkButton>',
|
||
|
};
|
||
|
},
|
||
|
parameters: {
|
||
|
layout: 'centered',
|
||
|
},
|
||
|
} satisfies StoryObj<typeof MkButton>;
|