import React from 'react'; import { ComponentStory, ComponentMeta } from '@storybook/react'; import { Color } 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'], }, }, } as ComponentMeta; const Template: ComponentStory = (args) => ( ); export const DefaultStory = Template.bind({}); DefaultStory.args = { iconName: IconName.Close, ariaLabel: 'Close', }; DefaultStory.storyName = 'Default'; export const IconNameStory: ComponentStory = (args) => ( ); IconNameStory.args = { iconName: IconName.Close, ariaLabel: 'Close', }; IconNameStory.storyName = 'IconName'; export const SizeStory: ComponentStory = (args) => ( <> ); SizeStory.storyName = 'Size'; export const AriaLabel: ComponentStory = (args) => ( <> ); export const As: ComponentStory = (args) => ( <> ); export const Href: ComponentStory = (args) => ( ); Href.args = { ariaLabel: 'Visit Metamask.io', href: 'https://metamask.io/', color: Color.primaryDefault, }; export const ColorStory: ComponentStory = (args) => ( ); ColorStory.storyName = 'Color'; ColorStory.args = { color: Color.primaryDefault, }; export const Disabled: ComponentStory = (args) => ( ); Disabled.args = { disabled: true, };