import React from 'react'; import { ComponentStory, ComponentMeta } from '@storybook/react'; import { AlignItems, TextColor, BorderColor, BorderRadius, BackgroundColor, DISPLAY, IconColor, Size, } from '../../../helpers/constants/design-system'; import Box from '../../ui/box/box'; import { AvatarAccount, AvatarNetwork, 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 = () => ( } > } > } anchorElementShape={BadgeWrapperAnchorElementShape.rectangular} > ); export const Badge = () => ( } > } > } anchorElementShape={BadgeWrapperAnchorElementShape.rectangular} > NFTs ); export const Position = () => ( } > } > } > } > ); export const PositionObj = () => ( } positionObj={{ top: 4, right: -8 }} > ); export const AnchorElementShape = () => ( } > } > } > } > } > );