Empty
What a list shows when it has nothing in it.
Examples
No funds match
No credit fund is domiciled in Luxembourg. Try fewer filters.
Could not load your events
Check the connection and try again.
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.
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
nonelabel 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.jsonimport { Empty, EmptyHeader, EmptyTitle, EmptyDescription, EmptyContent, EmptyAction } from "@/components/cobalt/ui/empty"Related
- LongWaitNoticethe line
noticeholds while a retry runs long. - Spinnersays that something is being read, in the slot where the answer will land.
- Alerta message above content that exists, about something wrong or worth knowing.
- First usewhat a new person sees before they have anything: a first step in place of an empty page.
