Avatar

An image element with a fallback for representing the user.

PreviousNext
ZAZAJDSALU

Installation

1

Run the CLI

Use the CLI to add the component to your project.

npx @ngzard/ui@latest add avatar

Examples

basic

ZAZAJDSALU

status

API Reference

z-avatar Component

Property Description Type Default
[zSize] Avatar size variant sm | default | md | lg | xl | number default
[zShape] Avatar shape circle | rounded | square circle
[zStatus] Status indicator badge online | offline | doNotDisturb | away
[zSrc] Image source URL string
[zAlt] Image alt text for accessibility string ''
[zFallback] Fallback text displayed while loading or on error string ''
[class] Additional CSS classes string ''

z-avatar-group Component

Property Description Type Default
[zOrientation] Layout direction of avatars horizontal | vertical horizontal
[class] Additional CSS classes string ''