Avatars
User representation with images, initials, or icons. Supports sizes, colors, status indicators, rings, and grouping.
Image Sizes
Six sizes from .lp-avatar--xs (24px) to .lp-avatar--2xl (80px).
Initials with Colors
Use text initials with .lp-avatar--{color} background colors.
Icon Avatars
Square Avatars
Add .lp-avatar--square for rounded-rectangle shape.
Avatar Ring / Border
Add .lp-avatar-ring or .lp-avatar-ring--{color} for a colored ring border.
Status Indicators
Add a .lp-avatar-status element inside for online/away/busy/offline indicators.
Status Positions
Position variants: --top-left, --top-right, --bottom-left, --bottom-right (default).
Sizes with Status
Avatar Group - Stacked
Overlapping avatars with .lp-avatar-group--stacked. Hover to lift.
Status — Contextual Colors
Besides the 4 semantic states (online/away/busy/offline), status dots also accept all 8 color variants: .lp-avatar-status--primary, --success, etc.
Square Avatars with Status
Status indicators work the same on square avatars.
Avatar Group - Stacked with Status
Stacked group where each avatar shows an active/away/busy state.
Avatar Group - Stacked Sizes
Stacked groups can match avatar sizes with .lp-avatar-group--xs, --sm, default, --lg, --xl. The overlap adjusts accordingly.
Extra Small
Small
Default (md)
Large
Avatar Group - Vertical
Vertical layout with .lp-avatar-group--vertical. All avatars stack straight down the column, aligned to the same starting point.
Avatar Group - Grid
Grid layout with .lp-avatar-group--grid.
"+N" Counter Colors
The .lp-avatar-more counter accepts all 8 color variants.
CSS Reference
| Class | Description |
|---|---|
.lp-avatar | Base avatar (40px, circular) |
.lp-avatar--xs | Extra small (24px) |
.lp-avatar--sm | Small (32px) |
.lp-avatar--lg | Large (48px) |
.lp-avatar--xl | Extra large (64px) |
.lp-avatar--2xl | 2X large (80px) |
.lp-avatar--{color} | Background color for initials/icons |
.lp-avatar--square | Rounded rectangle instead of circle |
.lp-avatar-ring | Default ring border (primary) |
.lp-avatar-ring--{color} | Colored ring border variant |
.lp-avatar-status | Status dot indicator (base) |
.lp-avatar-status--online | Green online status |
.lp-avatar-status--away | Yellow away status |
.lp-avatar-status--busy | Red busy status |
.lp-avatar-status--offline | Grey offline status |
.lp-avatar-status--{color} | Contextual color status (8 colors) |
.lp-avatar-status--{position} | Position: top-left, top-right, bottom-left, bottom-right |
.lp-avatar-group--stacked | Overlapping avatar group |
.lp-avatar-group--{xs|sm|lg|xl} | Group size modifier (tunes overlap + grid cell size) |
.lp-avatar-group--vertical | Vertical avatar list |
.lp-avatar-group--grid | Grid layout avatar group |
.lp-avatar-more | "+N" counter in avatar group |
.lp-avatar-more--{xs|sm|lg|xl|2xl} | Counter size modifier |
.lp-avatar-more--{color} | Counter color variant (8 colors) |