import { ComponentStory, ComponentMeta } from '@storybook/react'; import React from 'react'; import Button from 'soapbox/components/ui/button/button'; // More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export export default { title: 'UI/Button', component: Button, // More on argTypes: https://storybook.js.org/docs/react/api/argtypes argTypes: { text: { type: 'string', defaultValue: 'Button' }, theme: { control: 'select', options: [ 'primary', 'secondary', 'tertiary', 'accent', 'danger', 'transparent', 'outline', 'muted', ], defaultValue: 'primary', }, size: { control: 'select', options: [ 'xs', 'sm', 'md', 'lg', ], defaultValue: 'md', }, disabled: { type: 'boolean', defaultValue: false }, onClick: { action: 'onClick' }, }, } as ComponentMeta; // More on component templates: https://storybook.js.org/docs/react/writing-stories/introduction#using-args const Template: ComponentStory = (args) =>