Skip to content
Look

Shared with the landing page. Theme is the select beside this menu.

ErrorState

Open .md
Live preview

Loading example…

ErrorState is part of the States set, imported from @jcsoftdev/ui/states.

import { ErrorState } from "@jcsoftdev/ui/states";

Single-component entry points tree-shake to just this component: @jcsoftdev/ui/states/error-state.

<ErrorState
message="No pudimos cargar la agenda del día"
correlationId="7f3a-91c2"
correlationLabel="ID:"
retryLabel="Reintentar"
/>
Prop Type Default Description
title ReactNode Short headline. Wins over message as the headline when both are given.
description ReactNode Explanation under the headline, in plain language.
message ReactNode Headline when title is absent (kept for source compatibility).
correlationId ReactNode Correlation code for support; never a raw exception.
correlationLabel string Prefix shown before the correlation id.
onRetry (() => void)
retryLabel string
actions ReactNode Extra actions (buttons or links) in the same row as the retry button, under the message. Use it for “Go back” or “Contact support”; onRetry stays the shortcut for a plain retry.
variant "plain" | "outlined" "plain" outlined draws a danger border around the state.
className string

* marks a required prop.

packages/ui/src/states/error-state/error-state.tsx