import React from 'react'; import { StoryFn, Meta } from '@storybook/react'; import { AlignItems, BackgroundColor, IconColor, Color, Display, } from '../../../helpers/constants/design-system'; import { Box } from '../box'; import { IconName } from '..'; import README from './README.mdx'; import { AvatarIcon, AvatarIconSize } from '.'; export default { title: 'Components/ComponentLibrary/AvatarIcon', component: AvatarIcon, parameters: { docs: { page: README, }, }, argTypes: { iconName: { options: Object.values(IconName), control: 'select', }, size: { control: 'select', options: Object.values(AvatarIconSize), }, backgroundColor: { control: 'select', options: Object.values(BackgroundColor), }, color: { control: 'select', options: Object.values(Color), }, className: { control: 'text', }, }, args: { size: AvatarIconSize.Md, iconName: IconName.SwapHorizontal, }, } as Meta; const Template: StoryFn = (args) => { return ; }; export const DefaultStory = Template.bind({}); DefaultStory.storyName = 'Default'; export const SizeStory: StoryFn = (args) => ( ); SizeStory.storyName = 'Size'; export const IconNameStory: StoryFn = (args) => ( ); IconNameStory.storyName = 'Icon Name'; export const ColorAndBackgroundColor: StoryFn = (args) => ( );