AvatarProfilePhoto
<AvatarProfilePhoto>TailwindCSS ModulesA large, prominent profile photo designed for settings pages and profile headers. Features a distinct padded outer ring and drop shadow.
npx coloxo add avatar-profile-photo --style coloxo-cssimport { AvatarProfilePhoto } from '@coloxo/ui';Design Tokens:
1. Variant Matrix
Profile photos support high-resolution images, initials, and standard status badges scaled for large contexts.
| Image | Initials | Status | Verified | Company Badge | |
|---|---|---|---|---|---|
| Default | OR |
2. Control heights (Sizes)
Available in 3 specific large sizes. The padding ring scales proportionally with the image.
Sizes
size="sm"Settings panels, dense headers
size="md"DEFAULTStandard profile pages
size="lg"Hero sections, detailed profiles
3. Interactive Props Configurator
<AvatarProfilePhoto src="https://i.pravatar.cc/300?u=a042581f4e29026704a" alt="Olivia Rhye"/>4. Dark theme
The padded ring and badges automatically switch to dark border colors.
5. Enterprise layout compositions
The AvatarProfilePhoto is usually placed overlapping a cover image in profile pages.
Olivia Rhye
Product Designer
Accessibility
When using the `src` prop, always provide an `alt` prop with the user's name so screen readers can identify the image.
Status indicators (online/offline) and verified badges automatically inject an aria-label into their respective DOM nodes for screen readers.
Props
| Name | Type | Default | Description |
|---|---|---|---|
| size | "sm" | "md" | "lg" | md | 72 / 96 / 160px outer. |
| status | "online" | "offline" | "busy" | "away" | — | Presence dot. Mutually exclusive with verified/badge. |
| verified | boolean | — | Verified tick (Coloxo brand). |
| badge | ReactNode | — | Company/custom badge (e.g. AvatarCompanyIcon). Mutually exclusive with status/verified. |