@wonderflow/react-components
Version:
UI components from Wonderflow's Wanda design system
35 lines (34 loc) • 892 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { IconButton } from './icon-button';
const story = {
title: 'Actions/Icon Button',
component: IconButton,
args: {
dimension: 'regular',
kind: 'primary',
icon: 'bell',
busy: false,
squared: false,
},
argTypes: {
onClick: { action: 'clicked' },
dimension: {
options: ['small', 'regular', 'big'],
control: { type: 'radio' },
},
busy: {
options: [true, false],
control: { type: 'inline-radio' },
},
kind: {
options: ['primary', 'secondary', 'flat'],
control: { type: 'radio' },
},
},
};
export default story;
const Template = args => _jsx(IconButton, { ...args });
export const Default = Template.bind({});
Default.args = {
disabled: false,
};