import type { Meta, StoryObj } from "@storybook/react"; import { FormField } from "./form-field.js"; const meta = { title: "Molecules/FormField", component: FormField, tags: ["autodocs"], } satisfies Meta; export default meta; type Story = StoryObj; export const Default: Story = { args: { label: "Email", placeholder: "you@example.com", type: "email" }, }; export const WithDescription: Story = { args: { label: "Username", placeholder: "johndoe", description: "Must be 3-31 characters", }, }; export const WithError: Story = { args: { label: "Password", type: "password", error: "Password must be at least 6 characters", }, };