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
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead> <tbody><tr><td>
name
</td><td>
string | readonly string[]
</td><td>
</td></tr> <tr><td>
builder
</td><td>
(builder: ChildEnhancerBuilder) => void
</td><td>
</td></tr> </tbody></table> Returns: