---
title: "LayerOutsets"
description: "Creates a LayerOutsets with the same value for all sides."
type: "function"
lastmod: "2026-04-23T11:19:38.636224Z"
---
## API Reference

### LayerOutsets

> Source set: Common

```kotlin
fun LayerOutsets(all: Dp) = LayerOutsets(all, all, all, all)
```

Creates a [LayerOutsets](/jetpack-compose/androidx.compose.ui/ui-graphics/functions/LayerOutsets) with the same value for all sides.

### LayerOutsets

> Source set: Common

```kotlin
fun LayerOutsets(vertical: Dp, horizontal: Dp) =
    LayerOutsets(horizontal, vertical, horizontal, vertical)
```

Creates a [LayerOutsets](/jetpack-compose/androidx.compose.ui/ui-graphics/functions/LayerOutsets) where the horizontal value is applied to the left and right, and the
vertical value is applied to the top and bottom.
