4.2.0
Core

Empty

The canonical nothing-here-yet state, so no surface re-lays-out a centred stack, a medallion and two sentences by hand.

Default

The canonical "nothing here yet", so no surface has to re-lay-out a centred stack by hand. A dashed hairline rather than a filled card — an empty state must not look like a container with content in it — and every word is the caller's, because a default sentence cannot say whether the account is new or the import has not run.

No contacts yet

Upload a CSV or connect a source, and every campaign in this workspace can enrol from it. How imports work

Usage

import {
  Empty,
  EmptyContent,
  EmptyDescription,
  EmptyHeader,
  EmptyMedia,
  EmptyTitle,
} from '@oceanic-hub/brand-system'
<Empty>
  <EmptyHeader>
    <EmptyMedia>…</EmptyMedia>
    <EmptyTitle>…</EmptyTitle>
    <EmptyDescription>…</EmptyDescription>
  </EmptyHeader>
  <EmptyContent>…</EmptyContent>
</Empty>

Composition

Use the following composition to build an Empty:

Empty
├── EmptyHeader
│   ├── EmptyMedia
│   ├── EmptyTitle
│   └── EmptyDescription
└── EmptyContent

Reach for it the moment a list, a table or a panel can legitimately have zero rows — never for a loading state — Skeleton when the shape of what is coming is known, Spinner when neither its shape nor its length is — and never for an error, which wants its own wording about what went wrong and how to retry; Alert is what carries that. Empty is a REGION: it holds the words and the action, it is never itself the thing that is clicked.

There is no default copy anywhere in this component, on purpose. "No results found" would be a default and it would be useless — it cannot say whether a filter is too narrow, an import has not run yet, or the workspace is simply new, and that distinction is the only information an empty state carries. Every word in EmptyTitle and EmptyDescription is the caller's.

Upstream's page shows seven examples; five are this same composition wearing a different icon and a different sentence, which our two existing demos already generalize — a fresh icon or fresh copy is not a new capability, so it does not need its own demo. Two are a genuine refusal, in writing rather than left silent:

  • A gradient-lit background ("No Notifications") — refused outright. core-layer.md § Refusals: "No decorative gradients. No mesh, no noise, no glassmorphism."
  • Arabic, right-to-left — refused package-wide, recorded in pairings.json under direction: nothing in this package has ever been laid out or measured right-to-left, and mounting a direction provider here would advertise support nobody has tested.

The remaining example, a 404 page with a search box, needs no new part either: an Input inside EmptyContent composes today, the same way the button pair in the default demo does.

EmptyMedia's bare default variant takes whatever the caller renders, and that is not only icons — an empty state about a person (an offline collaborator, a conversation nobody has started) reaches for an Avatar instead of a medallion, shown in the third example.

Nothing yet, versus nothing matching

Two different facts that hand-rolled markup keeps rendering identically. "No contacts yet" is a first-run state and offers a way to create; "nothing matched" is a filter state and offers a way to widen. The bare media variant carries the second — a medallion would over-announce a result the user can undo in one click.

FiltersOwner: javi · Stage: replied · Last 24 hours
No contacts match these filters

412 contacts are in this workspace. Widen the date range or clear the stage filter to see them.

With an avatar

EmptyMedia's bare default variant takes whatever the caller renders — here an Avatar, for an empty state about a person rather than a category of thing.

BF
Borja hasn't sent anything yet

Messages you exchange with Borja will appear here once either of you starts the conversation.

API Reference

See the Empty API page for every prop of every part, with types, defaults and the contract that pins them. It also documents emptyMediaVariants — exported alongside the parts, and signatures rather than props.

On this page