Components · Data Display
Illustration
AlphaAdded v10.5.0
A spot illustration for an empty, error or full-page state, drawn in code so it follows the theme, dark mode and the product accent.
import { Illustration } from '@nexub/react';Playground
Props
size
<Illustration kind="noData" />Examples
Default
Kinds
States
defaultsize="sm"size="md"size="lg"
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| kindrequired | 'offline' | 'noData' | 'noResults' | 'noAccess' | 'serverError' | 'notFound' | 'maintenance' | — | Which drawing to show. |
| size | 'sm' | 'md' | 'lg' | 'md' | 80, 120 or 160 CSS px wide. |
| title | string | — | Names the drawing for assistive technology. Without it the drawing is decorative. |
On iOS & Android
Web only
Illustration has no @nexub/react-native twin. On phones, follow the platform pattern instead, or compose it from the native components listed on the React Native page.