import React from 'react'; import { ComponentStory, ComponentMeta } from '@storybook/react'; import { AlignItems, TextColor, BorderColor, BorderRadius, BackgroundColor, DISPLAY, IconColor, } from '../../../helpers/constants/design-system'; import Box from '../../ui/box/box'; import { AvatarAccount, AvatarNetwork, AvatarNetworkSize, AvatarToken, Icon, IconName, IconSize, Tag, } from '..'; import { BadgeWrapperAnchorElementShape, BadgeWrapperPosition, } from './badge-wrapper.types'; import README from './README.mdx'; import { BadgeWrapper } from './badge-wrapper'; export default { title: 'Components/ComponentLibrary/BadgeWrapper', component: BadgeWrapper, parameters: { docs: { page: README, }, }, argTypes: { children: { control: 'text', }, badge: { control: 'text', }, position: { options: Object.values(BadgeWrapperPosition), control: 'select', }, positionObj: { control: 'object', }, anchorElementShape: { options: Object.values(BadgeWrapperAnchorElementShape), control: 'select', }, className: { control: 'text', }, }, } as ComponentMeta; const Template: ComponentStory = (args) => ( } {...args} > {args.children ? ( args.children ) : ( )} ); export const DefaultStory = Template.bind({}); DefaultStory.storyName = 'Default'; export const Children: ComponentStory = () => ( } > } > } anchorElementShape={BadgeWrapperAnchorElementShape.rectangular} > ); export const Badge: ComponentStory = () => ( } > } > } anchorElementShape={BadgeWrapperAnchorElementShape.rectangular} > NFTs ); export const Position: ComponentStory = () => ( } > } > } > } > ); export const PositionObj: ComponentStory = () => ( } positionObj={{ top: 4, right: -8 }} > ); export const AnchorElementShape: ComponentStory = () => ( } > } > } > } > } > );