Display
Avatar
Image or initials avatar in circle, square, and rounded shapes.
User Representation
Avatars support images, initials, and fallback icons. They automatically handle cross-origin image loading, geometric shapes, and interactive states.
Image Avatar
Using src prop
Initials Avatar
Fallback initials
Rounded Avatar
shape="rounded"
Square Fallback
shape="square"
Status & Badges
Indicate availability with predefined status dots or overlay customized notification badges.
Online Status
Busy Status
Notification Badge
Custom Icon Badge
Avatar Groups
Stack multiple avatars together. Ideal for team lists and shared document indicators.
Team Members
Dense Grouping
Properties
| Prop | Type | Default | Description |
|---|---|---|---|
src | string | — | Resource URL of the avatar image |
alt | string | — | Accessibility text description for the avatar image |
initials | string | — | Configures the initials option |
size | BiibaSize | 'sm' | Predefined size scaling preset |
shape | 'circle' | 'square' | 'rounded' | — | Visual shape corner style (circle, rounded, square) |
badge | React.ReactNode | — | Badge/indicator overlaid at the bottom-right |
status | 'online' | 'offline' | 'busy' | 'away' | — | Status dot color — shows a small circle at bottom-right |
onClick | () => void | — | Click handler — makes avatar interactive |
fallbackIcon | React.ReactNode | — | Fallback icon if no src and no initials |
bg | string | — | Background color of the avatar |
color | string | — | Text/Icon color of the avatar |
children | React.ReactNode | — | Main descriptive text or overlay children layout |
max | number | — | Maximum numerical selectable bound |
spacing | number | — | Gap between overlapping avatars (negative = overlap) |