Skip to content

AvatarWithInitialsProps

AvatarWithInitialsProps = object

Defined in: packages/ui/src/types.ts:1308

Props for the AvatarWithInitials component.

Avatar component with automatic initials fallback when no image is available. Extracts initials from the name prop (e.g., “Daniel Schmidt” becomes “DS”). Used by UserMenuProps for the user avatar display.

name: string

Defined in: packages/ui/src/types.ts:1312

Full name used to derive initials.


optional size: "sm" | "md" | "lg"

Defined in: packages/ui/src/types.ts:1314

Avatar size. Defaults to “md”.


optional src: string | null

Defined in: packages/ui/src/types.ts:1310

Avatar image URL. Falls back to initials when null.