Components · Data Display
Empty State
Placeholder UI shown when a list or page has no content.
import { EmptyState } from '@nexub/react';Playground
Props
No results found
Try adjusting your search or filters to find what you're looking for.
<EmptyState.Root>…</EmptyState.Root>Examples
Default
Custom illustration
Presets
`EmptyStatePreset` for no data, no results, no access (403), server error (500) and offline.
States
No results found
Try adjusting your search or filters to find what you're looking for.
defaultNo 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
| Prop | Type | Default | Description |
|---|---|---|---|
| EmptyState.Root layout | 'centered' | 'inline' | 'centered' | "centered" stacks content vertically in the middle of its container; "inline" aligns content to the start. |
| EmptyState.Illustration children | React.ReactNode | — | Icon or SVG illustration to render above the title. |
| EmptyState.Title childrenrequired | React.ReactNode | — | Primary heading text for the empty state. |
| EmptyState.Description children | React.ReactNode | — | Supporting text providing more context or guidance. |
| EmptyState.Actions children | React.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 / actions | ReactNode | — | Override the localised text; add buttons such as Retry. |
| animate | boolean | — | Fades in on mount (nx-reveal; reduced motion keeps the crossfade). |
| size | 'sm' | 'md' | 'lg' | 'md' | Scales spacing, icon and text. |
On iOS & Android: EmptyState
import { EmptyState } from '@nexub/react-native';
<EmptyState title="No transactions yet" action={<Button onPress={topUp}>Add money</Button>} />Interactive preview of @nexub/react-native rendered for the web. Native chrome (switches, pickers, Liquid Glass) looks like the platform on a device.
On device

iPhone (iOS simulator)

Pixel (Android emulator)
Screenshots from the latest CI run of the showcase app; the live frame renders the same code for the web.
EmptyState props
| Prop | Type | Default | Description |
|---|---|---|---|
| titlerequired | string | — | — |
| description | string | — | — |
| icon | React.ComponentType<NativeIconProps> | AlertTriangle | — |
| tone | ToneValue | 'neutral' | — |
| action | React.ReactNode | — | Primary next step, e.g. <Button>Add money</Button>. |
| size | 'sm' | 'md' | 'lg' | 'md' | Scales spacing, icon and title. |
| illustration | React.ReactNode | — | 12.3: art in place of the icon disc, e.g. <Illustration kind="noData" />. |