import type { Meta, StoryObj } from '@storybook/react'; import { FloatingInput } from './floating-input'; import { Mail, Lock } from 'lucide-react'; const meta = { title: 'UI/FloatingInput', component: FloatingInput, tags: ['autodocs'], argTypes: { label: { control: 'text' }, error: { control: 'text' }, }, } satisfies Meta; export default meta; type Story = StoryObj; export const Default: Story = { args: { label: 'Email Address', type: 'email', }, }; export const WithIcon: Story = { args: { label: 'Password', type: 'password', icon: , }, }; export const WithError: Story = { args: { label: 'Email Address', type: 'email', icon: , value: 'invalid-email', error: 'Please enter a valid email address', }, };