interface BaseErrorBoundaryProps {
    children: ReactNode;
    title?: string;
    description?: string;
    HeaderIcon?: LucideIcon;
    recoveryActions?: RecoveryAction[];
    section?: string;
    onError?: (error: Error, errorInfo: ErrorInfo) => void;
}

Properties

children: ReactNode

Child components to wrap

title?: string

Custom title for the error card

description?: string

Custom description for the error card

HeaderIcon?: LucideIcon

Icon component to display in header

recoveryActions?: RecoveryAction[]

Recovery actions to display as buttons

section?: string

Section tag for Sentry context

onError?: (error: Error, errorInfo: ErrorInfo) => void

Optional custom error callback