import React from 'react';
import { Meta, Story } from '@storybook/react';
import { Textarea } from '../../index';
import description from './Textarea.md';
import { TextareaProps } from './Textarea';

const meta: Meta = {
  title: 'Components/Textarea',
  component: Textarea,
  parameters: {
    docs: {
      description: {
        component: description,
      },
    },
  },
  argTypes: {
    children: {
      table: {
        disable: true,
      },
    },
    className: {
      type: 'string',
    },
  },
};

export default meta;

const Template: Story<TextareaProps> = (args) => <Textarea {...args}>Textarea</Textarea>;

export const Default = Template.bind({});

Default.args = {};
