UNPKG

@metamask/design-system-react

Version:
22 lines 819 B
import type { ComponentProps } from "react"; import type { AvatarBaseProps } from "../AvatarBase/index.mjs"; export type AvatarTokenProps = Omit<ComponentProps<'img'>, 'children' | 'size'> & Omit<AvatarBaseProps, 'children'> & { /** * Required name of the token * Used as alt text for image and first letter is used as fallback if no fallbackText provided */ name?: string; /** * Optional URL for the token image * When provided, displays the image instead of fallback text */ src?: string; /** * Optional prop to pass to the underlying img element * Useful for overriding the default alt text which is the token name */ imageProps?: ComponentProps<'img'> & { 'data-testid'?: string; }; }; //# sourceMappingURL=AvatarToken.types.d.mts.map