import React from 'react'; import { StoryFn, Meta } from '@storybook/react'; import { Display, AlignItems, TextColor, BackgroundColor, BorderColor, } from '../../../helpers/constants/design-system'; import { AvatarNetwork, AvatarNetworkSize, BadgeWrapper, Box, ButtonLink, BUTTON_LINK_SIZES, Text, } from '..'; import README from './README.mdx'; import { AvatarToken, AvatarTokenSize } from '.'; export default { title: 'Components/ComponentLibrary/AvatarToken', component: AvatarToken, parameters: { docs: { page: README, }, }, argTypes: { size: { control: 'select', options: Object.values(AvatarTokenSize), }, color: { options: Object.values(TextColor), control: 'select', }, backgroundColor: { options: Object.values(BackgroundColor), control: 'select', }, borderColor: { options: Object.values(BorderColor), control: 'select', }, name: { control: 'text', }, src: { control: 'text', }, showHalo: { control: 'boolean', }, }, args: { name: 'eth', src: './images/eth_logo.png', size: AvatarTokenSize.Md, showHalo: false, }, } as Meta; const Template: StoryFn = (args) => { return ; }; export const DefaultStory = Template.bind({}); DefaultStory.storyName = 'Default'; export const SizeStory: StoryFn = (args) => ( <> Sizes with{' '} AvatarNetwork {' '} and{' '} BadgeWrapper {' '} components } > } > } > } > } > } > } > } > } > } > ); SizeStory.storyName = 'Size'; export const Name = Template.bind({}); Name.args = { src: '', }; export const Src: StoryFn = (args) => ( ); export const ShowHalo = Template.bind({}); ShowHalo.args = { showHalo: true, }; export const ColorBackgroundColorAndBorderColor: StoryFn = ( args, ) => ( ); ColorBackgroundColorAndBorderColor.args = { src: '', };