Skip to content

Empty

An empty state with media, title, description and actions.

With an action

No projects yet

Outlined

No invoices this month

No results

No tasks match “export”

Installation

npx shadcn@latest add @khaeli/empty

Install @khaeli/foundation first: this item's styling lives in its tokens and [data-slot] rules.

Installs with

Registry items
npm packages
  • class-variance-authority ^0.7.1

Accessible name

  • EmptyTitle is a div, not a heading, and the icon in EmptyMedia is decoration.
  • Name the action by what it creates, such as Create a project, so it makes sense out of context.

Registry JSON

The item as the shadcn CLI reads it, with every file it ships: https://ui.khaeli.com/r/empty.json