<!-- Do not edit this file. It is automatically generated by API Documenter. --> [`TextComponent`](TextComponent) › [`(constructor)`](TextComponent/(constructor).md) ## TextComponent.(constructor) Constructs a new instance of the `TextComponent` class **Signature:** ```typescript constructor(containerEl: HTMLElement); ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | <code>containerEl</code> | <code>HTMLElement</code> | |