UNPKG

primereact

Version:

PrimeReact is an open source UI library for React featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with Prime

26 lines (20 loc) 837 B
import * as React from 'react'; import { IconType } from '../utils'; type AvatarSizeType = 'normal' | 'large' | 'xlarge'; type AvatarShapeType = 'square' | 'circle'; type AvatarTemplateType = React.ReactNode | ((props: AvatarProps) => React.ReactNode); export interface AvatarProps extends Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'ref'> { label?: string; icon?: IconType<AvatarProps>; image?: string; size?: AvatarSizeType; shape?: AvatarShapeType; template?: AvatarTemplateType; imageAlt?: string; onImageError?(event: React.SyntheticEvent): void; onClick?(event: React.MouseEvent<HTMLElement>): void; children?: React.ReactNode; } export declare class Avatar extends React.Component<AvatarProps, any> { public getElement(): HTMLDivElement; }