import React from 'react' import type { Story, Meta } from '@storybook/react' import Component from '../TextArea' import type { TextAreaProps } from '../TextArea' import mdx from './TextArea.mdx' import type { ComponentArgTypes } from '../../../typings/utils' const TextAreaTemplate: Story = (props) => ( ) export const Textarea = TextAreaTemplate.bind({}) Textarea.args = { defaultValue: 'Write something here', } const controls: ComponentArgTypes = { variant: { options: ['default', 'success', 'error'], defaultValue: 'default', control: { type: 'select' }, }, value: { control: { type: 'text', }, }, defaultValue: { table: { disable: true }, }, } const actions: ComponentArgTypes = { onChange: { action: 'changed', table: { disable: true } }, } export default { title: 'Atoms/Textarea', argTypes: { ...controls, ...actions, }, parameters: { docs: { page: mdx, }, }, } as Meta