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:
AvatarFallbackrenders iOS Contacts' signature gray gradient fill with bold white initials. - Responsive sizes:
sm28px ↔ 24px,default40px ↔ 32px,lg56px ↔ 40px (mobile ↔ desktop). - Status badge:
AvatarBadgedefaults to Apple Green with a background-matched ring.
Installation (Shadcn Registry)
npx shadcn@latest add @apple-liquid/avatarUsage
import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar';
export function Example() {
return (
<Avatar>
<AvatarImage src="/avatar.png" alt="Avatar" />
<AvatarFallback>TC</AvatarFallback>
</Avatar>
);
}Attachment
File and image attachment cards with Liquid Glass by default, supporting uploading, processing, error, and idle states, and automatically switching to Over-Glass inside message composers.
Badge
Responsive Apple Liquid Glass pill badge preserving all 6 shadcn semantic variants with Liquid Glass enabled by default, dynamic accent tinting, and glass={false} solid fallback.