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
Variants and sizes
- In a card:
k-emptyinsidek-card k-card--flush, where the list would be. On the page:k-emptystraight onpaper. - Action:
k-btn--accentwhen it is the screen's one highlighted action, as here;k-btn--tonalwhen another action on the screen already holds the accent.
States
- The empty state has no states of its own; its button has rest, hover, pressed (it scales to 98%) and focus.
- When the first item arrives, the list takes its place.
Do and don’t
Do
Use the status marks as the picture, never an illustration, a mascot or an emoji.
Name what is missing in the title and the outcome in the body: "Attach the first file and it shows up here."
Offer exactly one next step, labelled with a verb.
Don’t
Joke, blame or apologise, and don't use exclamation marks.
Show an empty state before you know the list is empty.
What you provide
- The title, the body sentence, the action's label, icon name (
attach_file) and handler, and where it sits: in a card or on the page.