Avatar
An image element with a fallback for representing the user.
EW
Installation
npx shadcn@latest add https://exawizards.com/exabase/design/registry/avatar.json
Usage
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"
<Avatar>
<AvatarImage src="https://github.com/shadcn.png" />
<AvatarFallback>CN</AvatarFallback>
</Avatar>
API
See the Avatar – Radix Primitives (opens in a new tab) documentation.
Examples
Size
EW
Fallback
EW