CIA Compliance Manager API Documentation - v1.1.6
    Preparing search index...

    Props for the shared ImpactWidget component

    This is the base component used by all three impact widgets (Availability, Integrity, Confidentiality). It provides a unified interface for displaying CIA component-specific business impact analysis.

    <ImpactWidget
    component="availability"
    level="High"
    showExtendedDetails
    />
    interface ImpactWidgetProps {
        children?: ReactNode;
        className?: string;
        component: CIAComponent;
        level: SecurityLevel;
        onError?: (error: Error) => void;
        showExtendedDetails?: boolean;
        testId?: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    children?: ReactNode

    Optional children elements

    className?: string

    Optional CSS class name for custom styling

    Allows consumers to apply custom styles via CSS classes. Use Tailwind CSS classes or custom CSS classes.

    "mt-4 border-2 rounded-lg"
    
    component: CIAComponent

    CIA triad component (availability, integrity, or confidentiality)

    Current security level for the component

    onError?: (error: Error) => void

    Optional callback when widget encounters an error

    Type Declaration

      • (error: Error): void
      • Parameters

        • error: Error

          Error that occurred

        Returns void

    showExtendedDetails?: boolean

    If true, displays extended details (e.g., recommendations for integrity)

    false
    
    testId?: string

    Optional test ID for automated testing

    Used by testing frameworks (Cypress, Vitest) to locate and interact with the component. Should follow the pattern defined in testIds constants.

    "security-widget-availability"