import type { Meta, StoryObj } from '@storybook/vue3'; import { ref } from 'vue'; import { Input } from '~/components'; type Story = StoryObj; const meta: Meta = { title: 'Application/Inputs/Input', component: Input, tags: ['application', 'input', 'number', 'Input'], argTypes: { modelValue: { table: { disable: true } }, prefix: { table: { disable: true } }, icon: { table: { disable: true } }, suffix: { table: { disable: true } }, type: { control: 'select', options: ['button', 'checkbox', 'color', 'date', 'datetime-local', 'email', 'file', 'hidden', 'image', 'month', 'number', 'password', 'radio', 'range', 'reset', 'search', 'submit', 'tel', 'text', 'time', 'url', 'week'], }, canShow: { control: { type: 'boolean' }, if: { arg: 'type', eq: 'password' }, }, }, args: { type: 'text', error: false, canShow: false, }, }; export const Input_: Story = { render: args => ({ components: { Input }, setup() { const value = ref(''); return { args, value }; }, template: ' ', }), }; export default meta;