import * as React from 'react' import type { StoryFn, Meta } from '@storybook/react-webpack5' import type { TextareaProps } from '.' import { Textarea } from '.' import { text } from '@planview/pv-utilities' import styled from 'styled-components' const StyledText = styled.p` ${text.regular}; ` export default { title: 'pv-form/Components/Textarea', tags: ['autodocs'], args: { warning: '', error: '', }, argTypes: { limit: { options: [ 'none', 'number', 'always visible counter', 'no truncation', ], mapping: { none: undefined, number: 100, 'always visible counter': { value: 100, show: 'always', } satisfies TextareaProps['limit'], 'no truncation': { value: 100, truncate: false, } satisfies TextareaProps['limit'], }, control: { type: 'radio', }, table: { type: { summary: 'number | LimitConfig', }, }, }, }, component: Textarea, } satisfies Meta const Template: StoryFn = (args) =>