import {fn} from 'storybook/test'

import {TextInput} from '../components'

import type {Meta, StoryObj} from '@storybook/react-vite'

const meta = {
  title: 'Atoms/TextInput',
  component: TextInput,
  parameters: {
    layout: 'padded',
  },
  tags: ['autodocs'],
} satisfies Meta<typeof TextInput>

export default meta
type Story = StoryObj<typeof meta>

export const Default: Story = {
  args: {
    placeholder: 'Search...',
    onFocus: fn(),
    onBlur: fn(),
    onChange: fn(),
  },
}
