---
title: "LayerOutsets"
description: "Represents the outsets of a layer, which define the extra visual space around the layer's content."
type: "class"
lastmod: "2026-04-23T11:19:38.677200Z"
---
## API Reference

> Source set: Common

```kotlin
class LayerOutsets(
    val left: Dp = 0.dp,
    val top: Dp = 0.dp,
    val right: Dp = 0.dp,
    val bottom: Dp = 0.dp,
)
```

Represents the outsets of a layer, which define the extra visual space around the layer's
content. These outsets can be used to expand the layer's bounds beyond its measured content size.

This does not affect the clip or shadows itself and only increases the visual bounds of the
layer.

All outset values must be non-negative.

#### Parameters

| | |
| --- | --- |
| left | The outset on the left side. |
| top | The outset on the top side. |
| right | The outset on the right side. |
| bottom | The outset on the bottom side. |

## Companion Object

#### Properties

> Source set: Common

```kotlin
val Zero = LayerOutsets()
```

A [LayerOutsets](/jetpack-compose/androidx.compose.ui/ui-graphics/classes/LayerOutsets) with all sides set to zero.
