mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-05-21 13:16:57 +00:00
65 lines
1.1 KiB
TypeScript
65 lines
1.1 KiB
TypeScript
/* eslint-disable @typescript-eslint/explicit-function-return-type */
|
|
/* eslint-disable import/no-default-export */
|
|
import { Meta } from '@storybook/vue3';
|
|
const meta = {
|
|
title: 'components/global/MkLoading',
|
|
component: MkLoading,
|
|
} satisfies Meta<typeof MkLoading>;
|
|
export default meta;
|
|
/* 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 {
|
|
...args,
|
|
};
|
|
},
|
|
},
|
|
template: '<MkLoading v-bind="props" />',
|
|
};
|
|
},
|
|
args: {},
|
|
parameters: {
|
|
layout: 'centered',
|
|
},
|
|
} satisfies StoryObj<typeof MkLoading>;
|
|
export const Inline = {
|
|
...Default,
|
|
args: {
|
|
...Default.args,
|
|
inline: true,
|
|
},
|
|
};
|
|
export const Colored = {
|
|
...Default,
|
|
args: {
|
|
...Default.args,
|
|
colored: true,
|
|
},
|
|
};
|
|
export const Mini = {
|
|
...Default,
|
|
args: {
|
|
...Default.args,
|
|
mini: true,
|
|
},
|
|
};
|
|
export const Em = {
|
|
...Default,
|
|
args: {
|
|
...Default.args,
|
|
em: true,
|
|
},
|
|
};
|