UNPKG

liber-salti

Version:

Saltí - Liber Design System

20 lines (19 loc) 564 B
import { IconName } from '../Icon/Icon.types'; export interface AvatarProps { /** * Used in combination with src or srcSet to provide an alt attribute for the rendered img element. */ alt?: string; /** * Used to render text elements inside the Avatar if src and iconName is not set. */ children?: string; /** * The src attribute for the img element. */ src?: string; /** * Name of the Icon component to be put inside the Avatar if src is not set. */ iconName?: IconName; }