---
title: "externalPaddingHorizontal"
description: "Sets the external padding for the horizontal (start and end) edges of the component."
type: "function"
lastmod: "2026-05-20T01:13:53.241974Z"
---
## API Reference

### externalPaddingHorizontal

> Source set: Common

```kotlin
@ExperimentalFoundationStyleApi
fun ExternalPaddingScope.externalPaddingHorizontal(value: Dp)
```

Sets the external padding for the horizontal (start and end) edges of the component. The external
padding is the space between the edge of the component and its border (if any). The width/height
of the component includes external padding.

This property is *not* inherited

#### Parameters

| | |
| --- | --- |
| value | The amount of padding to apply to both start and end edges. |
