---
title: "clipToBounds"
description: "Clip the content to the bounds of a layer defined at this modifier."
type: "modifier"
---

<div class='type'>Compose Modifier</div>

<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
fun Modifier.clipToBounds() = graphicsLayer(clip = true)
```


Clip the content to the bounds of a layer defined at this modifier.



