Open this example in the interactive library
Live preview
Source code
// components/ErrorWithRecoveryDetails.tsx
export default function ErrorWithRecoveryDetails({
message = "Changes saved",
detail = "Your draft is up to date.",
}: { message?: string; detail?: string } = {}) {
return (
<aside role="alert">
<strong>{message}</strong>
<p>{detail}</p>
</aside>
);
}
