UNPKG

analytica-frontend-lib

Version:

Repositório público dos componentes utilizados nas plataformas da Analytica Ensino

24 lines 959 B
import { HTMLAttributes } from 'react'; export interface AvatarProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> { /** Picture URL. When absent — or if it fails to load — the fallback shows. */ src?: string | null; /** Alternative text for the picture. Defaults to the person's name. */ alt?: string; /** Name of the person, used as the default `alt`. */ name?: string; /** Rendered size in pixels. Default `40`. */ size?: number; } /** * Circular profile picture with a graceful fallback to the generic user * placeholder — used wherever a student/teacher is listed and the photo may be * missing or broken. * * @example * ```tsx * <Avatar src={student.photoUrl} name={student.name} size={48} /> * ``` */ export declare const Avatar: ({ src, alt, name, size, className, ...props }: AvatarProps) => import("react/jsx-runtime").JSX.Element; export default Avatar; //# sourceMappingURL=Avatar.d.ts.map