Empty State

A centred panel for a list, table or search with nothing to show, with an optional icon and actions.

Usage

PreviewCode
No projects yetCreate your first project to get started.
No matches for “invoices”

Usage notes

  • It is content, not a notification: it has no role and no live region. Pair it with volt-alert when the list is empty because a request failed.
  • volt-empty-state-title is not a heading element; wrap it in the h2–h6 that fits your page outline.
  • Actions are ordinary buttons or links in [slot=actions]: they keep the page's tab order and wrap on narrow screens.

API Reference

VoltEmptyStateDescription — volt-empty-state-description

InputTypeDefault
class string ''

VoltEmptyStateTitle — volt-empty-state-title

InputTypeDefault
class string ''

VoltEmptyState — volt-empty-state

InputTypeDefault
class string ''

Component Source

Install via CLI:npx @voltui/cli add empty-state
TypeScript
Loading editor…

Copy this code to your project. The component uses class-variance-authority.