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

    Interface CIAComponentWidgetProps

    Base props for widgets that display CIA component data

    Used by widgets that need to show information for a single CIA component.

    <ComponentWidget 
    component="availability"
    level="High"
    />
    interface CIAComponentWidgetProps {
        children?: ReactNode;
        className?: string;
        component: CIAComponent;
        level: SecurityLevel;
        onError?: (error: Error) => void;
        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

    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"