<!-- Do not edit this file. It is automatically generated by API Documenter. --> [`Setting`](Setting) › [`addComponent`](Setting/addComponent) ## Setting.addComponent() method 1.11.0 **Signature:** ```typescript addComponent<T extends BaseComponent>(cb: (el: HTMLElement) => T): this; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | <code>cb</code> | <code>(el: </code><code>HTMLElement</code><code>) =&gt; T</code> | | **Returns:** `this`