Home > @uniformdev/canvas > EnhancerBuilder > component

EnhancerBuilder.component() method

Targets a subset of enhancers at a specific component type. Global enhancers will still be run if no matching enhancer is registered for this component's properties.

Signature:

Parameters

Parameter

Type

Description

name

string | readonly string[]

builder

(builder: ChildEnhancerBuilder) => void

Returns:

EnhancerBuilder