import React from 'react' import { type Meta, type StoryObj } from '@storybook/react' import { TextAreaField } from '../index' const meta = { title: 'Components/TextAreaField', component: TextAreaField, args: { labelText: 'Label', }, } satisfies Meta export default meta type Story = StoryObj export const Playground: Story = { parameters: { docs: { canvas: { sourceState: 'shown', }, }, }, } export const Variant: Story = { render: () => (
), } export const Description: Story = { args: { description: 'A short description' }, } export const Validation: Story = { render: () => (
), parameters: { docs: { source: { type: 'dynamic' }, }, }, } export const Autogrow: Story = { args: { autogrow: true, defaultValue: 'Bacon ipsum dolor amet tenderloin buffalo kevin salami flank cupim. Leberkas rump ham tri-tip hamburger. Hamburger ball tip cupim meatball. Short loin tenderloin pork belly, short ribs prosciutto alcatra meatloaf chislic boudin buffalo pig jerky. Frankfurter meatloaf flank bacon, porchetta prosciutto swine. Jerky ham ball tip, venison hamburger meatball pancetta drumstick prosciutto shank boudin beef pork chop chicken t-bone.', }, } // 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) => (
), ], }