Subcomponents
Subcomponent discovery configuration. When present, enables subcomponent detection. When absent, subcomponents are not detected.
Properties
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
scope | "NESTED" | "PAGE" | No | NESTED | Where to search. NESTED = component anatomy only; PAGE = also search the Figma page |
match | string[] | Yes | — | Template patterns using {C} (component name) and {S} (subcomponent name) placeholders |
exclude | string[] | No | — | Template patterns to exclude from matches. Same {C}/{S} syntax |
An asset must match at least one match pattern to be considered a subcomponent. If it also matches an exclude pattern, the exclusion wins regardless of discovery source.
Path
config.processing.subcomponents
Example
config: processing: subcomponents: scope: PAGE match: - '{C} / {S}' - '{C} / _ / {S}' exclude: - '{C} / Examples / {S}'See Also
- Subcomponents guide - Detailed patterns and strategies
- Schema: Subcomponents - Subcomponent schema reference