Empty state

A React component in Beamline's Feedback category, in the free sample.

What a place will hold and the first step to fill it, instead of a blank; a compact size for panels and filtered tables.

Use it for

  • First runs, cleared inboxes, filters with no results.

Not for

Anatomy

  • root (fills its place; reads its room)
  • icon tile with a dashed ring
  • title
  • description
  • action
  • secondary

Variants

  • size: md, sm
  • layout: stack, row

States

  • first run
  • no results
  • all caught up
  • next step pointed at (the ring firms up)

Keyboard

  • Actions are buttons

Motion

Arrives with a fade over --pui-fade-in (it usually replaces a list that just emptied; reduced motion keeps the fade, none removes it). The dashed ring firms up at once while the next step is pointed at or focused and eases back over --pui-motion-out.

Props

PropTypeDefaultDescription
title / description / action / secondary / iconReactNode—title: Say what will be here: "No reports yet". description: Why it is empty and what happens next. action: The next step: create, import, invite. secondary: A quieter second step: docs, a sample. icon: Icon element shown beside the label. Defaults to no leading icon.
size"md" | "sm""md"compact for panels and table bodies.
layout"stack" | "row""stack"stack (default): centred. row: a strip for a list body or table section — icon, words and actions in one line from 32rem, the stack below.
style / refCSSProperties / native Ref—style: Inline styles on the documented visual root; no inline overrides by default. ref: Receives the documented root element; no ref by default.
classNamesEmptyStateClassNames—Classes for the named visual parts; no part overrides by default.
title (required)ReactNode—Say what will be here: "No reports yet".
descriptionReactNode—Why it is empty and what happens next.
actionReactNode—The next step: create, import, invite.
secondaryReactNode—A quieter second step: docs, a sample.
iconReactNode—Icon element shown beside the label. Defaults to no leading icon.
labelstring—The region's name, when the title is not text.
classNamestring—Classes on the documented visual root; no override by default.
styleCSSProperties—Inline styles on the documented visual root; no inline overrides by default.
refRef<HTMLElement>—Receives the documented root element; no ref by default.

Used in

Import

import { EmptyState } from "@beamline/empty-state";

Get it

Empty state is part of Beamline UI. Install the parts you need in your React app as compiled packages or editable source. Empty state is included in the free MIT sample. Get Beamline · Connect your agent

More in Feedback

  • Timer: A duration that counts down (or up) from your clock: Start, Pause, Resume, Reset and the finish reported once; the time left drawn as a bar you drag (or…
  • Notification centre: Updates that wait to be read: a bell with the unread count opens All / Unread, new and earlier groups, and per item mark read or dismiss.
  • Usage meter: An allowance and what fills it: one bar split by source, the room left, a warning near the limit and the overflow in its own red well past a notch at the…
  • Alert: A message that stays until it is dealt with: what happened, what to do, an action; danger and warning are announced; dismissing folds its height away.
  • Cookie consent: Asks once which cookies a visitor allows, with Reject all and Accept all given equal weight; Customise grows the notice in place into each category with…
  • Spinner: A ring that spins while work runs and closes into a drawn check or cross when it ends.
  • Announcement bar: A banner across the top for news and offers: messages take turns, a countdown ticks, and dismissing folds it away and can remember it.
  • Progress: How much of a known task is done, or a moving bar when the length is unknown, with an optional label and value.
  • Skeleton: Holds the shape of content while it loads, then crossfades into it, so nothing jumps.

Part of Beamline UI: polished, editable React components and complete screens for custom applications. Build your own style from any look; tokens, fonts, radii, motion; not only colours.