Empty State

Empty state web component: an icon, a headline, guidance text and actions for a view with nothing to show yet.

  • 1.4 KB gzipped
  • @lit-material/empty-state 0.0.3
  • Renders on the server

Example

Install

npm install @lit-material/empty-state @lit-material/tokens
import "@lit-material/empty-state";

Link @lit-material/tokens/css/index.css once per page for the colour, type and shape tokens. Install guide

API

<lit-material-empty-state>

An empty state: what a view would show and how to get there, in place of a blank panel — "No upstreams yet. Add one to rws.config.toml" with the action beside it.

Properties

PropertyAttributeTypeDefaultDescription
headlineheadlinestring""
levellevelnumber2The heading level, 1–6.
sizesize"standard" | "compact""standard"compact for inline use inside a card or table; standard centres it in a page area.

Slots

SlotDescription
defaultGuidance text.
iconAn optional illustration or icon above the headline.
actionsButtons or links.

CSS parts

PartDescription
empty-stateThe container.
headlineThe heading.

Source on GitHub npm