import { Meta, StoryObj } from '@storybook/react-vite'
import { Button, Label, Input} from '../..'
const meta = {
title: 'Input',
component: (args) => ,
args: {
type: 'text',
},
argTypes: {
type: {
control: { type: 'select' },
options: [
'file',
'email',
'password',
'text',
'checkbox',
'radio',
' date',
'datetime-local',
'email',
'hidden',
'image',
'month',
'number',
'password',
'range',
'reset',
'search',
'submit',
'tel',
'time',
'url',
'week',
],
},
},
parameters: {
layout: 'centered',
},
} satisfies Meta>
export default meta
type Story = StoryObj
export const InputDefault: Story = {
args: {
type: 'text',
placeholder: 'Name',
},
}
export const InputFile: Story = {
args: {},
render: function (args) {
return (
<>
>
)
},
}
export const InputDisabled: Story = {
args: {
disabled: true,
},
render: function (args) {
return
},
}
export const InputWithLabel: Story = {
args: {},
render: function () {
return (
)
},
}
export const InputWithButton: Story = {
args: {},
render: function () {
return (
)
},
}