Feedback
Empty state
An empty state takes the place of a list or page that has nothing in it yet: it says what is missing in plain words and offers the next step, such as "No files yet" with "Attach file".
In kanso-ui as EmptyState
Live in kanso-ui
EmptyState from kanso-ui as it draws today, in Kanso’s tokens. Press, hover and tab through it: the shapes, the springs and the sizes are the library’s own.
No files yet
Attach the first file and it shows up here.
The design
The Kanso design system's own drawing of it, in HTML and CSS with kanso-ui's tokens: the look kanso-ui's component moves to with its family's release.
When to use
- Use when a list or page has no items at all: a new project without files, a task list nobody has added to.
- Use the same layout, with the reason and a retry button, when a whole screen cannot load.
- Don't use it for a filter that finds nothing: say so in the list's place ("Nothing in Payments today") and offer "Show all".
- Don't use it while content loads (use
k-spinnerwith a label) or after a failed action (use a critical inline alert,k-alert--critical).