import React from "react";
import { Meta, Story } from "@storybook/react";
import {
  AtomInputNumber,
  IInputNumberProps,
} from "react/atoms/Input/InputNumber";

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

export default meta;

const TemplateInput: Story<IInputNumberProps> = (props) => (
  <AtomInputNumber {...props} />
);

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

InputNumber.args = {
  disabled: false,
};
