Skip to content

A user image with a text fallback, drawn as a rounded photo tile with a 1px dark edge and a top rim highlight like an iPhone OS contact picture.

Installation

Requires the theme. Register the @skeuomorph namespace and add @skeuomorph/skeuomorph first, as shown in the installation guide. The CLI also pulls it in as a dependency.

pnpm dlx shadcn@latest add @skeuomorph/avatar

Without the namespace, install straight from the URL:

pnpm dlx shadcn@latest add https://ui-skeuomorph.vercel.app/r/avatar.json

Usage

import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"
<Avatar>
  <AvatarImage src="https://github.com/krzysztoff1.png" alt="@krzysztoff1" />
  <AvatarFallback>KD</AvatarFallback>
</Avatar>