---
title: "styleExternalPadding"
description: "Transitionary modifier."
type: "modifier"
lastmod: "2026-09-24"
---
## API Reference

### styleExternalPadding

> Source set: Common

```kotlin
public fun Modifier.styleExternalPadding(styleResolver: StyleResolver): Modifier
```

Transitionary modifier. Do not use. This will be removed before the Styles API is stable.

This modifier is to help enable transition between the old [Style](/jetpack-compose/androidx.compose.foundation/foundation/functions/Style/api) based API and the new
[CustomStyle](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/CustomStyle/api) based API. This duplicates the behavior of the [externalPadding](/jetpack-compose/androidx.compose.foundation/foundation/functions/externalPadding/api) properties of
[Style](/jetpack-compose/androidx.compose.foundation/foundation/functions/Style/api).
