import { XIcon } from '@phosphor-icons/react' import type { Meta, StoryFn } from '@storybook/react' import React from 'react' import { IconButton } from '.' type ComponentProps = React.ComponentProps const meta: Meta = { title: 'IconButton', component: IconButton, parameters: { layout: 'centered', chromatic: { disableSnapshot: true }, }, argTypes: { onClick: { action: 'clicked' }, }, } export default meta const Template: StoryFn = (args) => { return (
) } export const Default: StoryFn = Template.bind({}) Default.args = { label: 'Close', children: , } export const WithCustomClassName: StoryFn = Template.bind({}) WithCustomClassName.args = { label: 'Custom styled button', children: , className: 'bg-[#7f22fe] text-white size-12', }