docs: note about Storybook

This commit is contained in:
Acid Chicken (硫酸鶏) 2023-03-24 23:22:49 +09:00
parent c2d8759812
commit bd7cc6ac38
No known key found for this signature in database
GPG key ID: 3E87B98A3F6BAB99
6 changed files with 90 additions and 47 deletions

View file

@ -1,34 +1,10 @@
/* eslint-disable @typescript-eslint/explicit-function-return-type */
/* eslint-disable import/no-default-export */
import { Meta, StoryObj } from '@storybook/vue3';
import MkCaptcha from './MkCaptcha.vue';
import { Meta } from '@storybook/vue3';
const meta = {
title: 'components/MkCaptcha',
component: MkCaptcha,
} satisfies Meta<typeof MkCaptcha>;
export const Default = {
render(args) {
return {
components: {
MkCaptcha,
},
setup() {
return {
args,
};
},
computed: {
props() {
return {
...args,
};
},
},
template: '<MkCaptcha v-bind="props" />',
};
},
parameters: {
layout: 'centered',
},
} satisfies StoryObj<typeof MkCaptcha>;
export default meta;
import MkCaptcha from './MkCaptcha.vue';
void MkCaptcha;