import type { Meta, StoryObj } from '@storybook/react'; import { action } from 'storybook/actions'; import React from 'react'; import { TextArea } from '../TextArea'; import { SnapshotContainer } from '../../../test-utils/SnapshotsContainer'; const meta: Meta = { title: 'Form/TextArea', component: TextArea, decorators: [ (Story) => (
), ], }; export default meta; type Story = StoryObj; export const Default: Story = { args: { onChange: action('onChange'), onFocus: action('onFocus'), onBlur: action('onBlur'), onKeyDown: action('onKeyDown'), }, }; export const WithPlaceholder: Story = { args: { ...Default.args, placeholder: 'Describe your expense', }, }; export const Disabled: Story = { args: { ...Default.args, isDisabled: true, value: 'Describe your expense', }, }; export const InADisabledFieldset: Story = { args: { ...Default.args, value: 'Describe your expense', }, render: (args) => (