import type { Meta, StoryObj } from '@storybook/react' import { Input } from './Input' import { TextField } from 'react-aria-components' const meta: Meta = { title: 'Components/Input', component: ({ isInvalid, ...props }) => ( ), argTypes: {}, } export default meta type Story = StoryObj export const Default: Story = { args: { label: 'Label', name: 'foo', required: false, }, } export const Filled: Story = { args: { label: 'Label', name: 'foo', value: 'Value', }, } export const Error: Story = { args: { label: 'Label', name: 'foo', // @ts-expect-error Input does not support this, but wrapping does isInvalid: true, }, } export const Disabled: Story = { args: { label: 'Label', name: 'foo', disabled: true, }, } export const DisabledFilled: Story = { args: { label: 'Label', name: 'foo', disabled: true, value: 'Value', }, }