UNPKG

@metamask/design-system-react

Version:
1 lines 1.59 kB
{"version":3,"file":"AvatarAccount.types.cjs","sourceRoot":"","sources":["../../../src/components/AvatarAccount/AvatarAccount.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentProps } from 'react';\n\nimport type { AvatarAccountVariant, AvatarAccountSize } from '../../types';\nimport type { AvatarBaseProps } from '../AvatarBase';\nimport type { Blockies } from '../temp-components/Blockies';\nimport type { Jazzicon } from '../temp-components/Jazzicon';\nimport type { Maskicon } from '../temp-components/Maskicon';\n\nexport type AvatarAccountProps = Omit<\n ComponentProps<'img'>,\n 'children' | 'size'\n> &\n Omit<AvatarBaseProps, 'children' | 'size'> & {\n /**\n * Required address used as a unique identifier to generate the AvatarAccount art.\n */\n address: string;\n /**\n * Optional prop to control the variant of the avatar account\n *\n * @default AvatarAccountVariant.Jazzicon\n */\n variant?: AvatarAccountVariant;\n /**\n * Optional prop to control the size of the avatar\n *\n * @default AvatarAccountSize.Md\n */\n size?: AvatarAccountSize;\n /**\n * Optional props to be passed to the Blockies component\n */\n blockiesProps?: Partial<ComponentProps<typeof Blockies>>;\n /**\n * Optional props to be passed to the Jazzicon component\n */\n jazziconProps?: Partial<ComponentProps<typeof Jazzicon>>;\n /**\n * Optional props to be passed to the Maskicon component\n */\n maskiconProps?: Partial<ComponentProps<typeof Maskicon>>;\n };\n"]}