UNPKG

@metamask/design-system-react

Version:
37 lines 1.45 kB
import type { ComponentProps } from "react"; import type { AvatarAccountVariant, AvatarAccountSize } from "../../types/index.mjs"; import type { AvatarBaseProps } from "../AvatarBase/index.mjs"; import type { Blockies } from "../temp-components/Blockies/index.mjs"; import type { Jazzicon } from "../temp-components/Jazzicon/index.mjs"; import type { Maskicon } from "../temp-components/Maskicon/index.mjs"; export type AvatarAccountProps = Omit<ComponentProps<'img'>, 'children' | 'size'> & Omit<AvatarBaseProps, 'children' | 'size'> & { /** * Required address used as a unique identifier to generate the AvatarAccount art. */ address: string; /** * Optional prop to control the variant of the avatar account * * @default AvatarAccountVariant.Jazzicon */ variant?: AvatarAccountVariant; /** * Optional prop to control the size of the avatar * * @default AvatarAccountSize.Md */ size?: AvatarAccountSize; /** * Optional props to be passed to the Blockies component */ blockiesProps?: Partial<ComponentProps<typeof Blockies>>; /** * Optional props to be passed to the Jazzicon component */ jazziconProps?: Partial<ComponentProps<typeof Jazzicon>>; /** * Optional props to be passed to the Maskicon component */ maskiconProps?: Partial<ComponentProps<typeof Maskicon>>; }; //# sourceMappingURL=AvatarAccount.types.d.mts.map