import React from 'react' import { type Meta, type StoryObj } from '@storybook/react' import { Icon } from '~components/Icon' import { TextField } from '../index' const meta = { title: 'Components/TextField', component: TextField, args: { labelText: 'Label', }, } satisfies Meta export default meta type Story = StoryObj export const Playground: Story = { parameters: { docs: { canvas: { sourceState: 'shown', }, }, }, } export const Types: Story = { render: () => (
), parameters: { docs: { source: { type: 'dynamic' }, }, }, } export const IconStory: Story = { name: 'Icon', args: { icon: }, } export const Description: Story = { args: { description: 'A short description' }, } export const Validation: Story = { render: () => (
), parameters: { docs: { source: { type: 'dynamic' }, }, }, } // Inline should be documented but currently the styles for don't match expectations // ie. it appears block level no matter what you do. // export const Inline: Story = { // args: { inline: true }, // } export const Reversed: Story = { args: { reversed: true }, decorators: [ (Story) => (
), ], }