2022-12-01 12:05:08 +01:00
|
|
|
import { ComponentMeta, ComponentStory } from "@storybook/react";
|
|
|
|
|
import React from "react";
|
|
|
|
|
import { Button } from "./index";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
title: "Button",
|
|
|
|
|
component: Button,
|
|
|
|
|
} as ComponentMeta<typeof Button>;
|
|
|
|
|
|
2023-01-04 15:52:24 +01:00
|
|
|
const Template: ComponentStory<typeof Button> = (args) => <Button {...args} />;
|
2022-12-01 12:05:08 +01:00
|
|
|
|
|
|
|
|
export const Default = Template.bind({});
|
2023-01-04 15:52:24 +01:00
|
|
|
Default.args = {
|
|
|
|
|
children: "Amazing button",
|
|
|
|
|
};
|