Components, Feedback
State panel
A block that takes the place of a list or panel when it is empty, has failed or is loading.
No schedules yet
Ask in a chat, for example ‘Remind me every morning at 9’.
Couldn't load the list
Check your network and try again.
Loading
A block placed where a list or panel is empty, has failed or is loading. Screens use it for every empty state and every error display.
When to use
kind |
Role | Content |
|---|---|---|
empty |
None | A title, what to do next, and an optional action. |
error |
alert |
What failed, and “Try again” (BaseButton outline, sm). |
loading |
status |
Spinner at 20 with tone="primary", and optional text. |
variant |
Use |
|---|---|
page (default) |
Centered in the body. No border. Padding 32×16. |
panel |
A block inside a panel. 1px border, radius 12, padding 24×16. |
inline |
A one-line empty state. |
Text
- Text is 14px with a line height of 1.5.
- The title is
foregroundat weight 600. The description ismuted-foreground. - Content is centered, with a gap of 12 between items.
What you provide
title: the state in one line (“No schedules yet”).description: for an empty screen, how to start. For an error, how to fix it.actionoronRetry.
Markup
<div class="StatePanel_root StatePanel_panel">
<p class="StatePanel_title">No schedules yet</p>
<p class="StatePanel_description">…</p>
<button type="button" class="BaseButton_btn BaseButton_btn--fill BaseButton_btn--sm">Create schedule</button>
</div>
Don’t
- Don’t decorate an empty screen with a picture. Text and an action are enough.
- Don’t write only an apology for an error.