Layout

Empty states for zero-data views

Empty states explain why a list is blank and what to do next—search again, reset filters, or create a record. Drop them into React tables and Next.js dashboards to avoid dead-end screens.

No messages yet

When conversations arrive, they will show up here.

Examples

Ghost appearance for inline panels.


No uploads

Drag files here to add them.

Empty state variants examples

Layout density, surface treatment, and alignment of the stack. Snippets include a leading Variant: line.


Appearance: DEFAULT, Size: MD, Align: CENTER

No uploads

Drag files here to add them.


Appearance: GHOST, Size: MD, Align: CENTER

No uploads

Drag files here to add them.


Appearance: CARD, Size: MD, Align: CENTER

No uploads

Drag files here to add them.


Appearance: GHOST, Size: SM, Align: CENTER

No uploads

Drag files here to add them.


Appearance: GHOST, Size: MD, Align: CENTER

No uploads

Drag files here to add them.


Appearance: GHOST, Size: LG, Align: CENTER

No uploads

Drag files here to add them.


Appearance: CARD, Size: MD, Align: START

No uploads

Drag files here to add them.


Appearance: CARD, Size: MD, Align: CENTER

No uploads

Drag files here to add them.


Appearance: CARD, Size: MD, Align: END

No uploads

Drag files here to add them.

What it does

Keep messaging specific: differentiate “no data yet” from “no matches.”

Offer a single primary action to reduce decision fatigue.

Composition and API

Prefer compound subcomponents instead of one oversized prop bag. Export a small, documented API for your design system.

Provide heading text that summarizes the state for screen reader users quickly.

Common use cases

  • First-run experiences before any records exist.
  • Zero-result searches with suggested next steps.
  • Permission-restricted views with upgrade CTAs.
  • Filtered tables after aggressive query narrowing.

Accessibility

Keyboard order, focus rings, and ARIA attributes should match production usage. Test with your supported browsers and assistive technologies when semantics are non-trivial.

This preview page exposes a single h1 in the hero for a clean outline.

Next.js integration notes

Colocate examples under the App Router, keep server and client boundaries explicit, and avoid pulling interactive overlays into unexpected server layouts.

Set NEXT_PUBLIC_SITE_URL so canonical and Open Graph URLs resolve on deploy.

FAQ

Does the Empty state component work with Next.js App Router?

Yes. Import it like any other React component; keep interactive subtrees in client components when you need hooks or browser APIs, and leave static structure in server components where possible.

Can I customize empty state with Tailwind CSS?

Zentauri UI exposes class-friendly variants and slots so you can extend styles with Tailwind utilities without fighting inline styles.

Is this Empty state implementation accessible by default?

Primitives follow sensible defaults, but accessibility depends on how you label controls, manage focus, and wire keyboard handlers in your app. Validate critical flows with keyboard-only use and screen readers.