import type { Meta, StoryObj } from '@storybook/react-vite' import { useState } from 'react' import { fn } from 'storybook/test' import { Button } from './Button' import { Field } from './Field' import { Form } from './Form' import { TextInput } from './TextInput' import { Textarea } from './Textarea' const meta = { title: 'Inputs/Form', component: Form, parameters: { layout: 'padded' }, args: { onSubmit: fn(), busy: false, 'aria-label': 'Example', children: null }, argTypes: { children: { control: false }, onSubmit: { control: false } }, decorators: [(Story) =>
], } satisfies Meta export default meta type Story = StoryObj const fields = (error?: string) => ( <>