@conciergus/chat - v0.3.1
    Preparing search index...

    Interface ConciergusErrorBoundaryProps

    Props for ConciergusErrorBoundary component

    interface ConciergusErrorBoundaryProps {
        children: ReactNode;
        config?: ErrorBoundaryConfig;
        fallbackMode?: FallbackMode;
        debug?: boolean;
        fallbackComponent?: ComponentType<FallbackComponentProps>;
        inlineFallback?: ComponentType<FallbackComponentProps>;
        toastComponent?: ComponentType<FallbackComponentProps>;
        className?: string;
        theme?: "light" | "dark" | "auto";
        onError?: (error: EnhancedError, errorInfo: ErrorInfo) => void;
        onRecovery?: (error: EnhancedError, success: boolean) => void;
        onErrorReported?: (errorId: string, error: EnhancedError) => void;
        ariaLabel?: string;
        ariaDescription?: string;
        [key: string]: any;
    }

    Indexable

    • [key: string]: any

      Additional props

    Index

    Properties

    children: ReactNode

    Child components to wrap

    Error boundary configuration

    fallbackMode?: FallbackMode

    Fallback mode

    debug?: boolean

    Enable debug mode

    fallbackComponent?: ComponentType<FallbackComponentProps>

    Custom fallback component for full mode

    inlineFallback?: ComponentType<FallbackComponentProps>

    Custom inline fallback

    toastComponent?: ComponentType<FallbackComponentProps>

    Custom toast component

    className?: string

    Additional CSS classes

    theme?: "light" | "dark" | "auto"

    Color theme

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

    Error caught handler

    onRecovery?: (error: EnhancedError, success: boolean) => void

    Recovery attempted handler

    onErrorReported?: (errorId: string, error: EnhancedError) => void

    Error reported handler

    ariaLabel?: string

    Accessibility label

    ariaDescription?: string

    Accessibility description