UNPKG

@combine-labs/combine-polaris

Version:

Combine Lab's product component library. Forked from Shopify's Polaris.

25 lines (24 loc) 890 B
import * as React from 'react'; import { WithAppProviderProps } from '../AppProvider'; export declare type Size = 'extraSmall' | 'small' | 'medium' | 'large'; export interface Props { /** * 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 */ source?: string; /** Accessible label for the avatar image */ accessibilityLabel?: string; } export declare type CombinedProps = Props & WithAppProviderProps; declare function Avatar({ name, source, initials, customer, size, accessibilityLabel, polaris: { intl }, }: CombinedProps): JSX.Element; declare const _default: React.ComponentClass<Props> & typeof Avatar; export default _default;