EmptyState
What shows instead of an empty list: it says why it is empty and invites the next step.
On this page
Playground
No reminders yet
Create the first one and it shows up here.
Drawing
Size
Action
Background
<div class="feitio-empty"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" viewBox="0 0 120 100" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round">
<path d="M14 40c30-2.6 62 1.4 92-1.8"/>
<path d="M18 41.5c3 16 6.2 32 10.4 46.6"/>
<path d="M25.6 88.6c22.4-1.8 43.6.6 66.2-1.6"/>
<path d="M101.6 41.6c-2.8 15.4-6 30.8-10.4 46.4"/>
<path d="M32 52c1.8 10 3.2 20 4.6 29.4M50 52.6c.4 9.8.2 19.6.6 29.2M68.4 52c-.6 9.8-1.2 19.6-1.8 29.6M86 51.6c-1.6 9.6-3 19.4-4.8 29.2"/>
<path d="M36 39c2.4-14 13-24.4 24.6-24.6C72.8 14.2 83.4 25 85 38.6"/>
<path class="feitio-hot" d="M60.6 6.4c-.2 2.4.2 4.8-.1 7.2M44 11.2c1.4 1.8 2.6 3.6 4 5.6M77.2 11c-1.4 1.8-2.6 3.8-4 5.8"/>
</svg>
<h3>No reminders yet</h3><p>Create the first one and it shows up here.</p></div>When to use
- When a list, table or page has nothing to show: the first time, after a filter with no results, or on a big error.
When not to use
- While loading: "empty" and "loading" are different things.
- Field error: the error components.
Examples
No schedules yet
Create the first one and it shows up here.
First time
With the drawing and the main action.
Show code
<div class="feitio-empty">
<svg …>…</svg>
<h3>Nenhum agendamento ainda</h3>
<p>Crie o primeiro e ele aparece aqui.</p>
<button type="button" class="feitio-button" data-variant="primary">Criar agendamento</button>
</div>Nothing found for "plants"
Try another word, or see them all.
Search with no results
No drawing, compact, and the way to undo the filter.
Show code
<div class="feitio-empty" data-size="compact">
<h3>Nada encontrado para "plantas"</h3>
…
</div>The server did not answer
Nothing was lost. Try again in a minute.
Big error
With the torn paper drawing, and what to do.
Show code
<div class="feitio-empty">
<svg …>…</svg>
<h3>O servidor não respondeu</h3>
…
</div>Do and don’t
Do
No tasks here
Create the first one.
Says what it is and what to do.
Don’t
Looks like there’s nothing here yet…
Ellipses and no way out: the person is left staring at nothing.
Writing
- Title: what does not exist ("No schedules yet"). Text: the next step. Button: the action, with verb and object.
Accessibility
- The drawing goes along (
aria-hidden); the heading and text say it all.
Attributes
| Attribute | Values | What for |
|---|---|---|
class="feitio-empty" | required | The centered box. |
data-size="compact" | optional | For a search or filter with no results. |
The drawings are in the illustration catalog.