---
title: "contentPaddingHorizontal"
description: "Sets the padding for the horizontal (start and end) edges of the component's content."
type: "function"
lastmod: "2026-05-20T01:13:53.236563Z"
---
## API Reference

### contentPaddingHorizontal

> Source set: Common

```kotlin
@ExperimentalFoundationStyleApi
fun ContentPaddingScope.contentPaddingHorizontal(value: Dp)
```

Sets the padding for the horizontal (start and end) edges 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 both start and end edges. |
