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

const meta: Meta = {
  title: 'Components/Input',
  component: Input,
  parameters: {
    docs: {
      description: {
        component: description,
      },
    },
  },
  argTypes: {
    children: {
      table: {
        disable: true,
      },
    },
    innerRef: {
      table: {
        disable: true,
      },
    },
    className: {
      type: 'string',
    },
    size: {
      control: {
        type: 'select',
        options: ['xs', 'sm', null, 'lg', 'xl'],
      },
    },
  },
};

export default meta;

const Template: Story<InputProps> = (args) => <Input {...args} />;

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

Default.args = {
  placeholder: '',
};
