Skip to content
nexubDesign System
v12.7.0

Components · Data Display

Empty State

StableAdded v0.0.1 · updated v5.6.0

Placeholder UI shown when a list or page has no content.

import { EmptyState } from '@nexub/react';
View as Markdown

Playground

Props

size
layout

No results found

Try adjusting your search or filters to find what you're looking for.

TSX
<EmptyState.Root>…</EmptyState.Root>

Examples

Default

No results found

Try adjusting your search or filters to find what you're looking for.

Custom illustration

No documents yet

Upload your first document to get started.

Presets

`EmptyStatePreset` for no data, no results, no access (403), server error (500) and offline.

No results

Try other words or remove some filters.

States

  • No results found

    Try adjusting your search or filters to find what you're looking for.

    default
  • No results found

    Try adjusting your search or filters to find what you're looking for.

    size="sm"
  • No results found

    Try adjusting your search or filters to find what you're looking for.

    size="md"
  • No results found

    Try adjusting your search or filters to find what you're looking for.

    size="lg"

Props

Props
PropTypeDefaultDescription
EmptyState.Root layout'centered' | 'inline''centered'"centered" stacks content vertically in the middle of its container; "inline" aligns content to the start.
EmptyState.Illustration childrenReact.ReactNode—Icon or SVG illustration to render above the title.
EmptyState.Title childrenrequiredReact.ReactNode—Primary heading text for the empty state.
EmptyState.Description childrenReact.ReactNode—Supporting text providing more context or guidance.
EmptyState.Actions childrenReact.ReactNode—One or more action buttons rendered below the description.
EmptyStatePreset kindrequired'offline' | 'noData' | 'noResults' | 'noAccess' | 'serverError' | 'notFound' | 'maintenance'—Ready-made icon, title and description (5.6). serverError and offline are announced as alerts.
EmptyStatePreset title / description / actionsReactNode—Override the localised text; add buttons such as Retry.
animateboolean—Fades in on mount (nx-reveal; reduced motion keeps the crossfade).
size'sm' | 'md' | 'lg''md'Scales spacing, icon and text.