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.
Fully compatible with the standard shadcn/ui JSX API (<Badge>, supporting polymorphic render such as <a>), preserving all 6 semantic variants with Apple Liquid Glass and dynamic accent colors enabled out of the box:
- Full-pill silhouette: Consistently uses
rounded-fullwithsm,default, andlgresponsive sizes. - Default Liquid Glass: Enabled by default (
glass={true}), reacting live to the global Glass Tint and Accent Color; passglass={false}anytime for a high-contrast solid badge.
All Semantic Variants
Switch the Accent Color and Glass Tint in the left sidebar to see every variant respond in real time:
Installation (Shadcn Registry)
npx shadcn@latest add @apple-liquid/badgeSize Scale
Available in sm, default, and lg capsule sizes:
Usage
import { Badge } from '@/components/ui/badge';
export function Example() {
return (
<div className="flex gap-2">
<Badge>Liquid Glass</Badge>
<Badge variant="secondary">macOS 27</Badge>
<Badge variant="destructive">Update Required</Badge>
</div>
);
}Props API
| Prop | Type | Default | Description |
|---|---|---|---|
variant | 'default' | 'secondary' | 'destructive' | 'outline' | 'ghost' | 'link' | 'default' | Standard 6 shadcn semantic variants (default and link follow the global accent color) |
size | 'sm' | 'default' | 'lg' | 'default' | Capsule size scale |
glass | boolean | true | Liquid Glass control material; false renders the 100% opaque Bordered equivalent |
render | ReactElement | — | Base UI polymorphic rendering, e.g. render={<a href="..." />} |
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.
Breadcrumb
Finder path-bar-inspired breadcrumb navigation with rounded hover highlights, hairline chevron separators, and 15px mobile ↔ 13px desktop typography.