Skip to Content
Liquid Glass UI
Components

Avatar

Apple 27 contact avatar with a 0.5px inner stroke to separate photos from light backgrounds, iOS Contacts-style gray gradient monogram fallbacks, 40px mobile ↔ 32px desktop sizing, status badges, and avatar groups.

Fully compatible with the standard shadcn/ui JSX API (Avatar / AvatarImage / AvatarFallback / AvatarBadge / AvatarGroup / AvatarGroupCount):

  • 0.5px inner stroke: Prevents light photos from blending into the background, adapting cleanly to both light and dark modes.
  • Contacts monogram: AvatarFallback renders iOS Contacts' signature gray gradient fill with bold white initials.
  • Responsive sizes: sm 28px ↔ 24px, default 40px ↔ 32px, lg 56px ↔ 40px (mobile ↔ desktop).
  • Status badge: AvatarBadge defaults to Apple Green with a background-matched ring.
apple-liquid-ui/preview/avatar-demo
MacBook · 16:10

Installation (Shadcn Registry)

npx shadcn@latest add @apple-liquid/avatar

Usage

import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar';

export function Example() {
  return (
    <Avatar>
      <AvatarImage src="/avatar.png" alt="Avatar" />
      <AvatarFallback>TC</AvatarFallback>
    </Avatar>
  );
}

On this page