import React from 'react'; import { StoryFn, Meta } from '@storybook/react'; import { IconColor } from '../../../helpers/constants/design-system'; import { IconName } from '..'; import { ButtonIconSize } from './button-icon.types'; import { ButtonIcon } from './button-icon'; import README from './README.mdx'; export default { title: 'Components/ComponentLibrary/ButtonIcon', component: ButtonIcon, parameters: { docs: { page: README, }, }, argTypes: { as: { control: 'select', options: ['button', 'a'], }, }, args: { iconName: IconName.Close, ariaLabel: 'Close', }, } as Meta; const Template: StoryFn = (args) => ; export const DefaultStory = Template.bind({}); DefaultStory.storyName = 'Default'; export const IconNameStory: StoryFn = (args) => ( ); IconNameStory.storyName = 'IconName'; export const SizeStory: StoryFn = (args) => ( <> ); SizeStory.storyName = 'Size'; export const AriaLabel: StoryFn = (args) => ( <> ); export const As: StoryFn = (args) => ( <> ); export const Href: StoryFn = (args) => ( ); Href.args = { ariaLabel: 'Visit Metamask.io', href: 'https://metamask.io/', target: '_blank', color: IconColor.primaryDefault, iconName: IconName.Export, }; export const ColorStory: StoryFn = (args) => ( ); ColorStory.storyName = 'Color'; ColorStory.args = { color: IconColor.primaryDefault, }; export const Disabled: StoryFn = (args) => ( ); Disabled.args = { disabled: true, };