import React from 'react';
import { ComponentStory, ComponentMeta } from '@storybook/react';
import TextArea from '../components/FormElements/Textarea/TextArea'



// More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
export default {
  title: 'Form elements/Textarea',
  component: TextArea,
  // More on argTypes: https://storybook.js.org/docs/react/api/argtypes
  argTypes: {
    rows: { control: {type: 'number', min: 0, max: 50 } },
    size: {defaultValue: 'default', control:{ type:"select", options:["default", "small", "medium", "large"]}},
    disable: { control: {type: 'boolean'} },
    borderRadious: {control:{ type:"select", options:["small", "medium", "large"]}},
    variant: {defaultValue: 'default', control:{ type:"select", options:["default", "primary", "secondary"]}},
  },
} as ComponentMeta<typeof TextArea>;

// More on component templates: https://storybook.js.org/docs/react/writing-stories/introduction#using-args
const Template: ComponentStory<typeof TextArea> = (args) => <TextArea {...args} />;

export const BasicTextArea = Template.bind({});
BasicTextArea.args = {
  label: 'Message',
  placeholder: 'Enter the message',
  helperText: 'Sample text'
};

