Components
GlassAvatar
A glassmorphism-styled avatar powered by Radix UI with image and fallback support.
Preview
CN
Usage
Fallback Only
When no image src is provided or the image fails to load, the fallback renders automatically.
Custom Size
Props — GlassAvatar
| Prop | Type | Default | Description |
|---|---|---|---|
className | string | — | Custom size or additional classes |
Props — GlassAvatarImage
| Prop | Type | Default | Description |
|---|---|---|---|
src | string | — | Image URL |
alt | string | — | Accessible alt text |
Props — GlassAvatarFallback
| Prop | Type | Default | Description |
|---|---|---|---|
delayMs | number | — | Delay before fallback renders (avoids flash) |
children | ReactNode | — | Initials or icon to show as fallback |
All Radix Avatar.* props are also accepted.