Components
Avatar
Round profile imagery with an initials fallback.
Interactive local example · fictional data
The Code tab contains this preview’s complete source, including sample data and interaction state. Load the package stylesheet and Switzer font as described in the installation guide. Additional layout utilities require Tailwind CSS in your application.
API reference
| Prop | Type | Default |
|---|---|---|
| name | string (required) | — |
| src | string | — |
| size | "sm" | "md" | "lg" | "md" |
Primitives also accept their underlying HTML or Radix props. Full types are included with the package.
Behavior & accessibility
- Sizes: 32px, 40px, and 96px. Images receive the supplied name as alternative text.
Reference
Sidebar, contacts, account