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

ParameterTypeDescription
namestring | readonly string[]
builder(builder: ChildEnhancerBuilder) => void

Returns:

EnhancerBuilder