---
title: "ContentPaddingScope"
description: "An interface that introduces the contentPadding property to a Style receiver scope interface."
type: "interface"
lastmod: "2026-05-20T01:13:53.361990Z"
---
## API Reference

> Source set: Common

```kotlin
@ExperimentalFoundationStyleApi
interface ContentPaddingScope
```

An interface that introduces the [contentPadding](/jetpack-compose/androidx.compose.foundation/foundation/functions/contentPadding) property to a [Style](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/Style) receiver scope interface.

## Functions

### contentPaddingStart

```kotlin
fun contentPaddingStart(value: Dp)
```

Sets the padding for the start edge of the component's content. Content padding is the space
between the component's border (if any) and its content. The width/height of the component
includes content padding.

This property is *not* inherited

#### Parameters

| | |
| --- | --- |
| value | The amount of padding to apply to the start edge. |

### contentPaddingEnd

```kotlin
fun contentPaddingEnd(value: Dp)
```

Sets the padding for the end edge of the component's content. Content padding is the space
between the component's border (if any) and its content. The width/height of the component
includes content padding.

This property is *not* inherited

#### Parameters

| | |
| --- | --- |
| value | The amount of padding to apply to the end edge. |

### contentPaddingTop

```kotlin
fun contentPaddingTop(value: Dp)
```

Sets the padding for the top edge of the component's content. Content padding is the space
between the component's border (if any) and its content. The width/height of the component
includes content padding.

This property is *not* inherited

#### Parameters

| | |
| --- | --- |
| value | The amount of padding to apply to the top edge. |

### contentPaddingBottom

```kotlin
fun contentPaddingBottom(value: Dp)
```

Sets the padding for the bottom edge of the component's content. Content padding is the space
between the component's border (if any) and its content. The width/height of the component
includes content padding.

This property is *not* inherited

#### Parameters

| | |
| --- | --- |
| value | The amount of padding to apply to the bottom edge. |
