@youcan/ui-vue3
Version:
YouCan Vue3 components library
32 lines (28 loc) • 684 B
text/typescript
import type { Meta, StoryObj } from '@storybook/vue3';
import { Percentage } from '~/components';
type Story = StoryObj<typeof Percentage>;
const meta: Meta<typeof Percentage> = {
title: 'Application/Percentage',
component: Percentage,
tags: ['application', 'input', 'number', 'Percentage'],
argTypes: {
type: {
control: 'select',
options: ['success', 'info', 'warning', 'danger'],
},
},
args: {
percentage: 20,
type: 'success',
},
};
export const Default: Story = {
render: args => ({
components: { Percentage },
setup() {
return { args };
},
template: '<Percentage v-bind="args"/>',
}),
};
export default meta;