Components · Data Display
Full-page or section error view with retry action.
import { Error State } from '@nexub/react';| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
| title | string | — | ✓ | Primary error heading shown to the user. |
| description | string | — | — | Supporting text with more detail about the error or recovery steps. |
| tone | 'error' | 'warning' | 'info' | 'error' | — | Controls the icon and colour scheme of the error state. |
| onRetry | () => void | — | — | When provided, renders a "Try again" button that calls this function on click. |
| actions | React.ReactNode | — | — | Custom action elements rendered below the description. Takes priority over the default retry button. |