Data display / Empty state

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

NameTypeDefaultDescription
iconstring"inbox-line"RemixIcon in the round well.
titlestring—Headline. Use the title slot for the one em that carries the accent.
textstring—The help line: what will fill the space, or what to change. The default slot overrides it.
actionLabelstring—Label of the one primary button. The action slot replaces the button.
actionIconstring—Leading icon on the button.
as"h2" | "h3" | "h4""h2"Heading level of the headline.
@action(e: MouseEvent)—The primary button was pressed.