@music-loopy/loops
Version:
A React component library for Music Loopy Applications and websites
69 lines (67 loc) • 1.59 kB
JavaScript
import { fn } from '@storybook/test';
import { Button } from './index';
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
export default {
title: 'Components/Button',
component: Button,
parameters: {
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/configure/story-layout
layout: 'centered'
},
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
tags: ['autodocs'],
// More on argTypes: https://storybook.js.org/docs/api/argtypes
argTypes: {
variant: {
control: 'color'
}
},
// Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args
args: {
onClick: fn()
}
};
// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
export var Primary = {
args: {
variant: 'primary',
children: 'Primary'
}
};
export var Secondary = {
args: {
children: 'Secondary',
variant: 'secondary'
}
};
export var Danger = {
args: {
children: 'Danger',
variant: 'danger'
}
};
export var FullWidth = {
args: {
fullWidth: true,
children: 'Full Width'
}
};
export var medium = {
args: {
size: 'medium',
children: 'Medium'
}
};
export var Large = {
args: {
size: 'large',
children: 'Large',
variant: 'primary'
}
};
export var Small = {
args: {
size: 'small',
children: 'Small'
}
};