import type { Meta, StoryObj } from '@storybook/react'; import { Input, SearchInput } from './input'; import { Mail, Lock } from 'lucide-react'; const meta = { title: 'UI/Input', component: Input, tags: ['autodocs'], argTypes: { type: { control: 'select', options: ['text', 'password', 'email', 'number'] }, disabled: { control: 'boolean' }, label: { control: 'text' }, }, args: { placeholder: 'Enter text...', } } satisfies Meta; export default meta; type Story = StoryObj; export const Default: Story = {}; export const WithLabel: Story = { args: { label: 'Email Address', placeholder: 'name@example.com', }, }; export const WithIcon: Story = { args: { label: 'Email', icon: , placeholder: 'Email', }, }; export const Password: Story = { args: { label: 'Password', type: 'password', icon: , placeholder: 'Password', }, }; export const Search: Story = { render: (args) => , args: { placeholder: 'Search...', }, };