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

# Yor.ts | interfaces/Component

[yor.ts](../README) / [Exports](../modules) / Component

# Interface: Component

## Implemented by

* [`YorInteractionComponent`](../classes/YorInteractionComponent)

## Table of contents

### Properties

* [execute](Component#execute)
* [id](Component#id)

## Properties

### execute

• **execute**: (`context`: [`ComponentContext`](../classes/ComponentContext)) => `void` | [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<`void`>

#### Type declaration

▸ (`context`): `void` | [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<`void`>

##### Parameters

| Name      | Type                                              |
| :-------- | :------------------------------------------------ |
| `context` | [`ComponentContext`](../classes/ComponentContext) |

##### Returns

`void` | [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<`void`>

#### Defined in

[src/interfaces/Component.ts:5](https://github.com/OreOreki/yor.ts/blob/ff21935/src/interfaces/Component.ts#L5)

***

### id

• **id**: `string`

#### Defined in

[src/interfaces/Component.ts:4](https://github.com/OreOreki/yor.ts/blob/ff21935/src/interfaces/Component.ts#L4)
