import type { Meta, StoryObj } from "@storybook/react"; import React from "react"; import { Hint, Label, Input } from "../../.."; const meta: Meta = { title: "Text input", component: Input, }; export default meta; type Story = StoryObj; const primary: Story = { name: "Text input", render: (_args) => ( ), }; const withoutHeading: Story = { name: "Text input without heading", render: (_args) => ( ), }; const fixedWidthInputs: Story = { name: "Fixed width inputs", render: (_args) => ( <> ), }; const fluidWidthInputs: Story = { name: "Fluid width inputs", render: (_args) => ( <> ), }; const hintText: Story = { name: "Text input with hint text", args: { name: "event-name", children: [ , The name you’ll use on promotional material, ], }, }; const number: Story = { name: "Text input with hint text", render: (_args) => ( Must be between 6 and 8 digits long ), }; const numberWithDecimals: Story = { name: "Numeric text input with decimals", render: (_args) => ( ), }; const prefixAndSuffix: Story = { name: "Prefix and suffix", render: (_args) => ( ), }; const prefix: Story = { name: "Prefix", render: (_args) => ( ), }; const suffix: Story = { name: "Suffix", render: (_args) => ( ), }; const autocomplete: Story = { name: "Autocomplete", render: (_args) => ( ), }; const spellcheck: Story = { name: "Spellcheck", render: (_args) => ( ), }; const error: Story = { name: "Error message", render: (_args) => ( The name you’ll use on promotional material ), }; const prefixSuffixError: Story = { name: "Error message on prefix and suffix", render: (_args) => ( ), }; export { primary, withoutHeading, fixedWidthInputs, fluidWidthInputs, hintText, number, numberWithDecimals, prefixAndSuffix, prefix, suffix, autocomplete, spellcheck, error, prefixSuffixError, };