Data display
Empty state
Icon, display headline, one line of help, one primary.
import { EcoEmptyState } from "vue-ecosphere"
First run
Empty because nothing exists yet. Never “No data available”, which tells the user nothing they cannot already see.
Nothing here yet.
This list fills in as records arrive. You can also add the first one by hand.
No results
Empty because a filter emptied it: different copy, and a different button.
No matches for that filter.
Three filters are active. Clearing the narrowest one usually brings results back.
API
| Name | Type | Default | Description |
|---|---|---|---|
icon | string | "inbox-line" | RemixIcon in the round well. |
title | string | — | Headline. Use the title slot for the one em that carries the accent. |
text | string | — | The help line: what will fill the space, or what to change. The default slot overrides it. |
actionLabel | string | — | Label of the one primary button. The action slot replaces the button. |
actionIcon | string | — | Leading icon on the button. |
as | "h2" | "h3" | "h4" | "h2" | Heading level of the headline. |
@action | (e: MouseEvent) | — | The primary button was pressed. |