---
title: "externalPadding"
description: "Sets the external padding for the component."
type: "function"
lastmod: "2026-04-23T11:19:39.068011Z"
---
## API Reference

### externalPadding

> Source set: Common

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

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

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