@wonderflow/react-components
Version:
UI components from Wonderflow's Wanda design system
31 lines (30 loc) • 837 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { ToggleButton } from './toggle-button';
const story = {
title: 'Actions/Toggle button',
component: ToggleButton,
args: {
dimension: 'regular',
kind: 'primary',
restingIcon: 'play',
squared: false,
},
argTypes: {
onClick: { action: 'clicked' },
dimension: {
options: ['small', 'regular', 'big'],
control: { type: 'radio' },
},
kind: {
options: ['primary', 'secondary', 'flat'],
control: { type: 'radio' },
},
},
};
export default story;
const Template = args => _jsx(ToggleButton, { ...args });
export const Default = Template.bind({});
export const MultipleIcons = Template.bind({});
MultipleIcons.args = {
pressedIcon: 'pause',
};