This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
skynet-webportal/packages/website/stories/Button.stories.js

37 lines
619 B
JavaScript
Raw Permalink Normal View History

2021-04-02 18:45:38 +00:00
import React from "react";
2021-03-23 12:07:19 +00:00
2021-04-02 18:45:38 +00:00
import { Button } from "./Button";
2021-03-23 12:07:19 +00:00
export default {
2021-04-02 18:45:38 +00:00
title: "Example/Button",
2021-03-23 12:07:19 +00:00
component: Button,
argTypes: {
2021-04-02 18:45:38 +00:00
backgroundColor: { control: "color" },
2021-03-23 12:07:19 +00:00
},
};
const Template = (args) => <Button {...args} />;
export const Primary = Template.bind({});
Primary.args = {
primary: true,
2021-04-02 18:45:38 +00:00
label: "Button",
2021-03-23 12:07:19 +00:00
};
export const Secondary = Template.bind({});
Secondary.args = {
2021-04-02 18:45:38 +00:00
label: "Button",
2021-03-23 12:07:19 +00:00
};
export const Large = Template.bind({});
Large.args = {
2021-04-02 18:45:38 +00:00
size: "large",
label: "Button",
2021-03-23 12:07:19 +00:00
};
export const Small = Template.bind({});
Small.args = {
2021-04-02 18:45:38 +00:00
size: "small",
label: "Button",
2021-03-23 12:07:19 +00:00
};