import {TextareaComponent as Textarea} from './text-area.component';
import type {Meta, StoryObj} from '@storybook/react';
import React from 'react';

const meta: Meta<typeof Textarea> = {
    title: 'Molecules/Textarea',
    component: Textarea,
};
export default meta;

type Story = StoryObj<typeof Textarea>;

export const Default: Story = {
    render: (args) => <Textarea {...args} data-testid='textarea' />,
    args: {
        placeholder: 'Enter a description...',
        disabled: false,
        label: 'Description',
        helperText: 'This is a hint text to help user.',
        id: 'description',
        error: false,
        mandatory: false,
    },
};
