---
title: "clip"
description: "Clip the content to [shape]."
type: "modifier"
---

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

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


```kotlin
fun Modifier.clip(shape: Shape) = graphicsLayer(shape = shape, clip = true)
```


Clip the content to `shape`.

#### Parameters

| | |
| --- | --- |
| shape | the content will be clipped to this `Shape`. |




