diff options
| author | Acid Chicken (硫酸鶏) <root@acid-chicken.com> | 2023-04-05 00:41:49 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-05 00:41:49 +0900 |
| commit | 7bd0001e763a12c2b2aeb5cf4417f802cd4fbb4c (patch) | |
| tree | 62ca232417372612f78761f26669b56a80d35733 /packages/frontend/src/components/global/MkLoading.stories.impl.ts | |
| parent | Merge branch 'develop' into fix/visibility-widening (diff) | |
| parent | enhance(backend): improve cache (diff) | |
| download | misskey-7bd0001e763a12c2b2aeb5cf4417f802cd4fbb4c.tar.gz misskey-7bd0001e763a12c2b2aeb5cf4417f802cd4fbb4c.tar.bz2 misskey-7bd0001e763a12c2b2aeb5cf4417f802cd4fbb4c.zip | |
Merge branch 'develop' into fix/visibility-widening
Diffstat (limited to 'packages/frontend/src/components/global/MkLoading.stories.impl.ts')
| -rw-r--r-- | packages/frontend/src/components/global/MkLoading.stories.impl.ts | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/packages/frontend/src/components/global/MkLoading.stories.impl.ts b/packages/frontend/src/components/global/MkLoading.stories.impl.ts new file mode 100644 index 0000000000..9dcc0cdea1 --- /dev/null +++ b/packages/frontend/src/components/global/MkLoading.stories.impl.ts @@ -0,0 +1,60 @@ +/* eslint-disable @typescript-eslint/explicit-function-return-type */ +import { StoryObj } from '@storybook/vue3'; +import isChromatic from 'chromatic/isChromatic'; +import MkLoading from './MkLoading.vue'; +export const Default = { + render(args) { + return { + components: { + MkLoading, + }, + setup() { + return { + args, + }; + }, + computed: { + props() { + return { + ...this.args, + }; + }, + }, + template: '<MkLoading v-bind="props" />', + }; + }, + args: { + static: isChromatic(), + }, + parameters: { + layout: 'centered', + }, +} satisfies StoryObj<typeof MkLoading>; +export const Inline = { + ...Default, + args: { + ...Default.args, + inline: true, + }, +} satisfies StoryObj<typeof MkLoading>; +export const Colored = { + ...Default, + args: { + ...Default.args, + colored: true, + }, +} satisfies StoryObj<typeof MkLoading>; +export const Mini = { + ...Default, + args: { + ...Default.args, + mini: true, + }, +} satisfies StoryObj<typeof MkLoading>; +export const Em = { + ...Default, + args: { + ...Default.args, + em: true, + }, +} satisfies StoryObj<typeof MkLoading>; |