mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-25 22:26:43 -06: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>;
|