Empty
What shows where a list, a page or a panel has nothing in it. A picture, what belongs there and the next step, rising into place when it comes back in place of content just cleared or filtered away.
Examples
You’re all caught up
Default
Give show the condition it shows on and keep it mounted: when the list empties it rises into place, and a page that opens empty simply shows it.
Stack
variant="stack" puts the icon in the first of three outlined rows, so the space reads as a list waiting for its rows. variant="outline" on Empty draws a dashed edge.
No results
Say what was looked for and how to clear it. Announce the count in a status region that is there before the search, and send focus back to the field when the search clears.
No picture
Leave out EmptyMedia in a narrow panel, where the words are enough. With show left out it never moves.
Installation
npx shadcn@latest add https://kinoui.com/r/empty.json- Files
lib/reduce-motion.tscomponents/kino/empty.tsx- Packages
@base-ui/reactclass-variance-authority- Global CSS
- the feels, the density tokens, the shape tokens and the success and warning colours
New to Kino? Installation covers what your project needs first and the @kino namespace.
API reference
Empty
EmptyMedia
Data attributes
CSS variables
Accessibility
- An empty state that replaces search results is not announced by itself: keep a
role="status"region on the page from the start and write the result into it. - When the control that had focus goes with the content, such as the last row’s button, move focus to the empty state’s action.
- The picture is hidden from screen readers. The title says what is empty.
- The title is a
div. Render a heading where the page’s outline needs one. - When the system asks for less motion, it only fades in.