---
title: "clipScrollableContainer"
description: "Clips bounds of scrollable container on main axis while leaving space for background effects
(like shadows) on cross axis."
type: "modifier"
---

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

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


```kotlin
fun Modifier.clipScrollableContainer(orientation: Orientation) =
    then(
        if (orientation == Orientation.Vertical) {
            Modifier.clip(VerticalScrollableClipShape)
        } else {
            Modifier.clip(HorizontalScrollableClipShape)
        }
    )
```


Clips bounds of scrollable container on main axis while leaving space for background effects
(like shadows) on cross axis.

#### Parameters

| | |
| --- | --- |
| orientation | orientation of the scrolling |




