import React from "react";
import { Meta, Story } from "@storybook/react";
import { AtomInputText, IInputTextProps } from "react/atoms/Input/InputText";

const meta: Meta = {
  title: "React/atoms/Input",
  component: AtomInputText,
  argTypes: {
    errorCallback: { table: { disable: true } },
    withIcon: { table: { disable: true } },
  },
  parameters: {
    controls: { expanded: true },
  },
};

export default meta;

const TemplateInput: Story<IInputTextProps> = (props) => (
  <AtomInputText {...props} />
);

export const Input = TemplateInput.bind({});

Input.args = {
  disabled: false,
};
