Security level for availability component
OptionalchildrenOptional children elements
OptionalclassOptional CSS class name for custom styling
Allows consumers to apply custom styles via CSS classes. Use Tailwind CSS classes or custom CSS classes.
Security level for confidentiality component
OptionalcurrencyCurrency code for cost display
Security level for integrity component
OptionalonCallback fired when cost estimation is complete
Total estimated cost
OptionalonOptional callback when widget encounters an error
Error that occurred
OptionalshowIf true, displays detailed cost breakdown
OptionaltestOptional 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.
Props for CostEstimationWidget component
Estimates implementation costs for security controls based on selected security levels across CIA components.
Example