Empty
Apple 27 empty state inspired by ContentUnavailableView, featuring a rounded icon tile, prominent title, secondary description, and action slot (20px mobile ↔ 15px desktop title).
Fully compatible with the standard shadcn/ui JSX API (Empty / EmptyHeader / EmptyMedia / EmptyTitle / EmptyDescription / EmptyContent):
- ContentUnavailableView style: Rounded icon tile paired with a semibold title and muted description.
- Responsive typography: Title scales 20px on mobile ↔ 15px on desktop; description scales 15px ↔ 13px.
- Default Liquid Glass: Renders as a Liquid Glass panel by default; pass
glass={false}for a transparent surface (optionally addborderfor a dashed outline).
Installation (Shadcn Registry)
npx shadcn@latest add @apple-liquid/emptyUsage
import { InboxIcon } from 'lucide-react';
import {
Empty,
EmptyDescription,
EmptyHeader,
EmptyMedia,
EmptyTitle,
} from '@/components/ui/empty';
export function Example() {
return (
<Empty>
<EmptyHeader>
<EmptyMedia variant="icon">
<InboxIcon />
</EmptyMedia>
<EmptyTitle>No Mail</EmptyTitle>
<EmptyDescription>New messages will appear here.</EmptyDescription>
</EmptyHeader>
</Empty>
);
}Props API
| Prop | Type | Default | Description |
|---|---|---|---|
glass | boolean | true | Liquid Glass material reacting to glass tint; false renders a 100% opaque / unbacked variant. Auto-switches to Over-Glass on glass surfaces |
surface | 'default' | 'over-glass' | Auto-detected | Manually override the hosting surface context |
DropdownMenu
Responsive Apple Liquid Glass dropdown menu displaying a floating macOS 27 Liquid Glass menu with #0069F9 highlights on desktop, and automatically adapting to a swipe-to-dismiss iOS 27 bottom Liquid Glass Drawer with submenu drill-down on mobile.
Field
Apple 27 form typography combining labels, controls, descriptions, and validation errors, with vertical, horizontal, and responsive layouts, legends, separators, and Inset Grouped choice cards.