Skip to content

Subcomponents

Subcomponent discovery configuration. When present, enables subcomponent detection. When absent, subcomponents are not detected.

Properties

PropertyTypeRequiredDefaultDescription
scope"NESTED" | "PAGE"NoNESTEDWhere to search. NESTED = component anatomy only; PAGE = also search the Figma page
matchstring[]YesTemplate patterns using {C} (component name) and {S} (subcomponent name) placeholders
excludestring[]NoTemplate 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