Avatar
stable llms.txtUser profile image with automatic fallback to generated initials and customizable sizes.
Installation
bash
ts
Preset Configuration
Customize the appearance using presets
Examples
Explore different variations and use cases
Basic Avatar
Simple avatar with image
Avatar Sizes
Different sizes for various contexts
Fallback Initials
Automatic initials when no image is provided
Avatar Group
Display multiple avatars in a group
API Reference
Accessibility
- Proper alt text for images passed to screen readers
- Meaningful initials as fallback when image fails or is absent
- Adequate color contrast for initials against background
- Image uses role="presentation" to avoid redundant announcements
- aria-label support for custom content