---
title: "TextContextMenuComponent"
description: "A single component of a text context menu."
type: "class"
---

<div class='type'>Class</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
abstract class TextContextMenuComponent internal constructor(val key: Any)
```


A single component of a text context menu.

#### Parameters

| | |
| --- | --- |
| key | A unique key that identifies this component, mainly for use in filtering a component in `Modifier.filterTextContextMenuComponents`. It is advisable to use a `data object` as a key here. |




