Avatar

Brand avatar used as a logo across the site. Two variants: photo with a profile image and rotating accent-gradient border, and icon with an animated accent-gradient orb.

Variants

Gabriel Hidalgo
Photo
Icon
tsx
<Avatar variant="photo" />
<Avatar variant="icon" />

Sizes

Gabriel Hidalgo
32px
Gabriel Hidalgo
40px (default)
Gabriel Hidalgo
48px
32px
40px (default)
48px
tsx
{/* Override size via className */}
<Avatar variant="photo" className="h-8 w-8 rounded-[8px]" />
<Avatar variant="photo" />  {/* 40px default */}
<Avatar variant="photo" className="h-12 w-12 rounded-[12px]" />  {/* 48px */}

Use Cases

Photo

Gabriel Hidalgo

Gabriel Hidalgo

UX/UI Designer

Icon

Gabriel Hidalgo

UX/UI Designer

Props

PropTypeDefaultDescription
variant"photo" | "icon""photo"Photo shows the profile image with a rotating accent-gradient border. Icon shows an animated accent-gradient orb inside a dark container.
classNamestring-Additional classes merged onto the outer container. Use to override size (e.g. h-8 w-8) or add hover effects.

Import

tsx
import { Avatar } from '@/components/ui/Avatar'