Skip to Content
Liquid Glass UI
Components

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 add border for a dashed outline).
apple-liquid-ui/preview/empty-demo
MacBook · 16:10

Installation (Shadcn Registry)

npx shadcn@latest add @apple-liquid/empty

Usage

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

PropTypeDefaultDescription
glassbooleantrueLiquid 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-detectedManually override the hosting surface context

On this page