FUI5004: Required companion component is missing from the region
moderateA region contains a component that the composition policy requires to be paired with a companion that is absent.
Details
diagnostic
{
"code": "FUI5004",
"ruleId": "composition/co-occurrence",
"category": "Composition",
"defaultSeverity": "moderate",
"lifecycle": "experimental",
"fixAvailable": false,
"evidenceRequired": true
}Guidance
Add the required companion component to the region, or remove the component that triggers the requirement. The validated case is an action group: a primary Button should be accompanied by a secondary Button — an outline or cancel action — so a committing action always offers a clear alternative.
This rule is region-scoped and policy-driven: the requirement applies per container (such as one ButtonGroup) and is satisfied as soon as a matching companion is present in the same region. Only statically-resolved props are considered, so a dynamic variant is never treated as the missing companion.