UNPKG

baseui

Version:

A React Component library implementing the Base design language

29 lines (28 loc) 872 B
import type { Override } from '../helpers/overrides'; export type InitialsStyleProps = {}; export type AvatarStyleProps = { $didImageFailToLoad?: boolean; $imageLoaded?: boolean; $size?: string; }; export type RootStyleProps = { $didImageFailToLoad: boolean; $size?: string; }; export type StyleProps = RootStyleProps; export type AvatarOverrides = { Avatar?: Override; Initials?: Override; Root?: Override; }; export type AvatarProps = { /** Bypasses initial generation from provided name with this value. */ initials?: string; /** Defines an alternative text description of the image. */ name?: string; overrides?: AvatarOverrides; /** Defines the width/height of the image. Accepts labels from theme.sizing, or passes value to height/width. */ size?: string; /** Image to display. */ src?: string; };