Zum Inhalt springen
CtrlK

ArdoErrorBoundary

Auf dieser Seite
Diese API-Referenz wird aus den englischen TypeScript-Quellkommentaren erzeugt. Namen, Signaturen und Beispiele entsprechen dem veröffentlichten Paket.

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"