Skip to content
HomeCobalt

Empty

What a list shows when it has nothing in it.

Examples

Filters that match no fund leave the empty state where the rows would be, with one button that clears them; the box keeps its height either way.
No funds match
No credit fund is domiciled in Luxembourg. Try fewer filters.
Failed loadA failed load, announced once, with one retry button; the events take its place at its height. A retry still out after 8 seconds says so under it, with a retry that starts it over.
In a cardA dashboard card with nothing in it yet; the first event takes the empty state's place at its height.
Upcoming events
No events yet
Events you create or join show up here.

States

No notifications yet
A reply or an invitation shows up here.
No actionA list that fills itself has only a title and sentence.

Usage

Use it when

  • A list, a table or a search has nothing to show, and you need to know what is missing and what makes it appear.
  • A load failed and the place where the rows go must say so, with one way to try again.

Use something else when

  • The rows are still on their way. Use Skeleton instead, until the answer is known.
  • One value in a row is missing. Use DataTable's none label in the cell instead.
  • An action finished or failed and the list is still there. Use Toaster instead, since the rows are the content and the result is a passing message.

Rules

General

Content

Avoid

Limits

Install

npx shadcn@latest add https://kaanarici.com/r/cobalt/empty.json
import { Empty, EmptyHeader, EmptyTitle, EmptyDescription, EmptyContent, EmptyAction } from "@/components/cobalt/ui/empty"