---
title: "contentPadding"
description: "Sets the padding for the component's content."
type: "function"
lastmod: "2026-04-23T11:19:39.064129Z"
---
## API Reference

### contentPadding

> Source set: Common

```kotlin
@ExperimentalFoundationStyleApi
fun StyleScope.contentPadding(paddingValues: PaddingValues)
```

Sets the padding for 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

| | |
| --- | --- |
| paddingValues | The [PaddingValues](/jetpack-compose/androidx.compose.foundation/foundation-layout/functions/PaddingValues) to apply to the content. |
