Skip to main content
  1. Docs
  2. Components
  3. Feedback

Empty state

The message where content would be: nothing yet, no results, or an error. DataState picks the right one.

Import
@qeetrix/react/experimental
Status
ExperimentalSince 0.0.4
Renders
<div>Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

0.3.0

  • icon takes an element as well as a component (icon={<PlusIcon />}), so a Server Component can pass one: its type is IconSource.

02

0.1.0

  • EmptyState renders its children.
  • DataState no longer jumps in height between loading and error, and its error is announced.

03

0.0.3

  • EmptyState: a 24px icon, a title (a heading with level), a description and actions, in page or section size and neutral or danger tone. Server-safe.
  • DataState: loading, then error, then empty, then the content. The error never shows the raw error, and onRetry adds "Try again".

Every change to @qeetrix/react

Next — Console frameApp shell