import React from "react";
import { Meta, Story } from "@storybook/react";
import { action } from "@storybook/addon-actions";
import { AtomButtonOutline } from "react/atoms/Buttons/Outline";
import { IProps } from "react/atoms/Buttons/ButtonProps";

const meta: Meta = {
  title: "React/atoms/Button/Outline",
  component: AtomButtonOutline,
  argTypes: {
    onClick: {
      table: {
        disable: true,
      },
    },
  },
  parameters: {
    controls: { expanded: true },
  },
};

export default meta;

const TemplateOutline: Story<IProps> = (props) => (
  <AtomButtonOutline {...props} />
);

// By passing using the Args format for exported stories, you can control the props for a component for reuse in a test
// https://storybook.js.org/docs/react/workflows/unit-testing
export const Outline = TemplateOutline.bind({});

Outline.args = {
  disabled: false,
  onClick: action("Event Click"),
  color: "primary",
  text: "Text",
  type: "button",
  width: "144px",
};
