@cdr-kit/react-ui/DX primitives/CdrError

<CdrError>

Soft-bordered danger state with an optional retry CTA. Pair with caught errors from useAccessVault or useSubscribeAndAccess.
import { CdrError } from "@cdr-kit/react-ui"

Live preview

import { CdrError } from "@cdr-kit/react-ui";

<CdrError
title="Read timed out"
message="Threshold not met in time."
onRetry={() => refetch()}
/>

Props

PropTypeDefaultDescription
titlerequiredReactNodeBold first line — the error title.
messageReactNodeOptional detail line below the title.
onRetry() => voidWhen set, renders the retry button on the right.
retryLabelstring"Retry"Retry button label.