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

    Interface SecurityImpactWidgetProps

    Props for widgets that display security impacts

    Impact widgets help stakeholders understand the consequences of their security choices, highlighting how each security level affects the organization from technical, operational, and business perspectives. 💼

    interface SecurityImpactWidgetProps {
        availabilityLevel: SecurityLevel;
        children?: ReactNode;
        className?: string;
        confidentialityLevel: SecurityLevel;
        integrityLevel: SecurityLevel;
        level?: SecurityLevel;
        onAvailabilityChange?: (level: SecurityLevel) => void;
        onConfidentialityChange?: (level: SecurityLevel) => void;
        onError?: (error: Error) => void;
        onIntegrityChange?: (level: SecurityLevel) => void;
        testId?: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    availabilityLevel: SecurityLevel

    The selected availability level

    Controls system uptime and accessibility requirements.

    'High'
    
    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"
    
    confidentialityLevel: SecurityLevel

    The selected confidentiality level

    Controls data privacy and access control requirements.

    'Moderate'
    
    integrityLevel: SecurityLevel

    The selected integrity level

    Controls data accuracy and consistency requirements.

    'Very High'
    

    Optional level (for backward compatibility)

    onAvailabilityChange?: (level: SecurityLevel) => void

    Optional callback fired when availability level changes

    Type Declaration

    onAvailabilityChange={(level) => {
    console.log('New availability level:', level);
    updateConfiguration('availability', level);
    }}
    onConfidentialityChange?: (level: SecurityLevel) => void

    Optional callback fired when confidentiality level changes

    Type Declaration

    onConfidentialityChange={(level) => {
    console.log('New confidentiality level:', level);
    updateConfiguration('confidentiality', level);
    }}
    onError?: (error: Error) => void

    Optional callback when widget encounters an error

    Type Declaration

      • (error: Error): void
      • Parameters

        • error: Error

          Error that occurred

        Returns void

    onIntegrityChange?: (level: SecurityLevel) => void

    Optional callback fired when integrity level changes

    Type Declaration

    onIntegrityChange={(level) => {
    console.log('New integrity level:', level);
    updateConfiguration('integrity', level);
    }}
    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"