UNPKG

@shopify/polaris

Version:

Shopify’s admin product component library

25 lines 934 B
import React from 'react'; type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl'; export declare const STYLE_CLASSES: readonly ["one", "two", "three", "four", "five", "six", "seven"]; export interface AvatarProps { /** * Size of avatar * @default 'medium' */ size?: Size; /** The name of the person */ name?: string; /** Initials of person to display */ initials?: string; /** Whether the avatar is for a customer */ customer?: boolean; /** URL of the avatar image which falls back to initials if the image fails to load */ source?: string; /** Callback fired when the image fails to load */ onError?(): void; /** Accessible label for the avatar image */ accessibilityLabel?: string; } export declare function Avatar({ name, source, onError, initials, customer, size, accessibilityLabel, }: AvatarProps): React.JSX.Element; export {}; //# sourceMappingURL=Avatar.d.ts.map