> ## Documentation Index
> Fetch the complete documentation index at: https://javascript.wapikit.com/llms.txt
> Use this file to discover all available pages before exploring further.

# TemplateComponent

[Wapi.js Docs](../README.mdx) / TemplateComponent

# Class: TemplateComponent

Represents a component of a template message.

## Constructors

### new TemplateComponent()

> **new TemplateComponent**(`params`): [`TemplateComponent`](TemplateComponent.mdx)

#### Parameters

• **params**: `object` | `object` | `object`

The component data.

#### Returns

[`TemplateComponent`](TemplateComponent.mdx)

#### Source

[packages/wapi.js/src/structures/template/index.ts:55](https://github.com/sarthakjdev/wapi.js/blob/1b066ed4efaf997a4bb012da51514dfcb4165da6/packages/wapi.js/src/structures/template/index.ts#L55)

## Properties

### componentData

> **componentData**: `object` | `object` | `object`

#### Source

[packages/wapi.js/src/structures/template/index.ts:36](https://github.com/sarthakjdev/wapi.js/blob/1b066ed4efaf997a4bb012da51514dfcb4165da6/packages/wapi.js/src/structures/template/index.ts#L36)

## Methods

### addParameters()

> **addParameters**(`parameter`): `void`

Adds a parameter to the component.

#### Parameters

• **parameter**: [`TemplateParameter`](TemplateParameter.mdx)

The parameter to add.

#### Returns

`void`

#### Source

[packages/wapi.js/src/structures/template/index.ts:92](https://github.com/sarthakjdev/wapi.js/blob/1b066ed4efaf997a4bb012da51514dfcb4165da6/packages/wapi.js/src/structures/template/index.ts#L92)
