Aller au contenu
CtrlK

ArdoErrorBoundary

Sur cette page
Cette référence API est générée à partir des commentaires TypeScript en anglais. Les noms, signatures et exemples correspondent au paquet publié.

Themed error/404 page. Ardo renders it for missing pages and render errors; export a different ErrorBoundary from app/root.tsx to replace it.

import { ArdoErrorBoundary } from "ardo/ui"

<ArdoErrorBoundary />

Props

NameTypeRequiredDescription
notFound{ title?: string; description?: string; homeLabel?: string; homeHref?: string }NoOverride the heading/description shown for 404 responses.
error{ title?: string; description?: string; homeLabel?: string; homeHref?: string }NoOverride the heading/description shown for non-404 errors.

Props type: ArdoErrorBoundaryProps

Example

// app/root.tsx
export { ArdoErrorBoundary as ErrorBoundary } from "ardo/ui"