---
title: "LocalTextSelectionColors"
description: "CompositionLocal used to change the [TextSelectionColors] used by text and text field components
in the hierarchy."
type: "property"
---

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


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

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


```kotlin
val LocalTextSelectionColors = compositionLocalOf { DefaultTextSelectionColors }
```


CompositionLocal used to change the `TextSelectionColors` used by text and text field components
in the hierarchy.



