Avatar
An image element with a fallback for representing the user.
Loading...
Loading code...
Installation
Usage
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"<Avatar>
<AvatarImage src="/avatars/01.png" alt="User avatar" />
<AvatarFallback>JD</AvatarFallback>
</Avatar>Examples
Fallback Only
Loading...
Loading code...
Different Sizes
Loading...
Loading code...
Different Radius
Loading...
Loading code...
Group Avatars
Loading...
Loading code...
Comparing with Radix / shadcn
If you’re already familiar with Radix UI and shadcn/ui, this guide highlights the small differences and similarities so you can get started with ui/topia quickly.
Quick Checklist
- If you used
asChildon parts, switch to therenderprop