Sharkey/packages/frontend/src/components/global/MkLoading.stories.impl.ts

60 lines
1 KiB
TypeScript
Raw Normal View History

/* eslint-disable @typescript-eslint/explicit-function-return-type */
import { StoryObj } from '@storybook/vue3';
import MkLoading from './MkLoading.vue';
export const Default = {
render(args) {
return {
components: {
MkLoading,
},
setup() {
return {
args,
};
},
computed: {
props() {
return {
2023-04-01 16:35:05 +09:00
...this.args,
};
},
},
template: '<MkLoading v-bind="props" />',
};
},
args: {
static: true,
},
parameters: {
layout: 'centered',
},
} satisfies StoryObj<typeof MkLoading>;
export const Inline = {
...Default,
args: {
...Default.args,
inline: true,
},
2023-04-01 16:26:08 +09:00
} satisfies StoryObj<typeof MkLoading>;
export const Colored = {
...Default,
args: {
...Default.args,
colored: true,
},
2023-04-01 16:26:08 +09:00
} satisfies StoryObj<typeof MkLoading>;
export const Mini = {
...Default,
args: {
...Default.args,
mini: true,
},
2023-04-01 16:26:08 +09:00
} satisfies StoryObj<typeof MkLoading>;
export const Em = {
...Default,
args: {
...Default.args,
em: true,
},
2023-04-01 16:26:08 +09:00
} satisfies StoryObj<typeof MkLoading>;