Empty state placeholder with icon, title, description, and action slots.

No files found
Upload a file to get started or browse existing ones.

Installation

npx shadcn@latest add @ark-cn/empty

Usage

import {
  Empty,
  EmptyContent,
  EmptyDescription,
  EmptyHeader,
  EmptyMedia,
  EmptyTitle,
} from "@/components/ui/empty"
<Empty>
  <EmptyHeader>
    <EmptyMedia variant="icon">
      <FolderOpenIcon />
    </EmptyMedia>
    <EmptyTitle>No results</EmptyTitle>
    <EmptyDescription>Try adjusting your search.</EmptyDescription>
  </EmptyHeader>
  <EmptyContent>
    <Button size="sm">Take action</Button>
  </EmptyContent>
</Empty>

Examples

Default

No files found
Upload a file to get started or browse existing ones.

Icon Variant

No results found
Try different keywords or clear your filters.

API reference

This component is an ark-cn composition. All props and DOM behavior are defined by the underlying ark factory elements.