Skip to content

Instantly share code, notes, and snippets.

@olalekanteeblaze
Created August 28, 2021 16:12
Show Gist options
  • Save olalekanteeblaze/49e526eed5c13466628ae070bc315c71 to your computer and use it in GitHub Desktop.
Save olalekanteeblaze/49e526eed5c13466628ae070bc315c71 to your computer and use it in GitHub Desktop.
import React from 'react';
import { Button } from './Button';
export default {
title: 'Example/Button',
component: Button,
argTypes: {
backgroundColor: { control: 'color' },
},
};
const Template = (args) => <Button {...args} />;
export const Primary = Template.bind({});
Primary.args = {
primary: true,
label: 'Button',
};
export const Secondary = Template.bind({});
Secondary.args = {
label: 'Button',
};
export const Large = Template.bind({});
Large.args = {
size: 'large',
label: 'Button',
};
export const Small = Template.bind({});
Small.args = {
size: 'small',
label: 'Button',
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment