---
title: "TextContextMenuBuilderScope"
description: "Scope for building a text context menu in
[Modifier.appendTextContextMenuComponents][appendTextContextMenuComponents]. See member functions
for how to add context menu components to this scope as part of the
[Modifier.appendTextContextMenuComponents][appendTextContextMenuComponents] modifier. The `item`
function is not in the common source set, but is instead defined as an extension function in the
platform specific source sets."
type: "class"
---

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


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

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


```kotlin
class TextContextMenuBuilderScope internal constructor()
```


Scope for building a text context menu in
`Modifier.appendTextContextMenuComponents`. See member functions
for how to add context menu components to this scope as part of the
`Modifier.appendTextContextMenuComponents` modifier. The `item`
function is not in the common source set, but is instead defined as an extension function in the
platform specific source sets.


## Functions

```kotlin
fun separator()
```


Adds a separator to the list of text context menu components. Successive separators will be
combined into a single separator.



