---
title: "padding"
description: "Apply additional space along the edges of the content."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-android'>Android</div>


```kotlin
public fun CurvedModifier.padding(paddingValues: ArcPaddingValues): CurvedModifier
```


Apply additional space along the edges of the content.

#### Parameters

| | |
| --- | --- |
| paddingValues | The `ArcPaddingValues` to use. See that class and factory methods to see how paddings can be specified. |




<div class='sourceset sourceset-android'>Android</div>


```kotlin
public fun CurvedModifier.padding(outer: Dp, inner: Dp, before: Dp, after: Dp): CurvedModifier
```


Apply additional space along the edges of the content. Dimmensions are in dp. For before and
after they will be considered as if they are at the midpoint of the content (for conversion
between dimension and angle).

#### Parameters

| | |
| --- | --- |
| outer | The space to add to the outer edge of the content (away from the center of the containing CurvedLayout) |
| inner | The space to add to the inner edge of the content (towards the center of the containing CurvedLayout) |
| before | The space added before the component, if it was draw clockwise. This is the edge of the component with the "smallest" angle. |
| after | The space added after the component, if it was draw clockwise. This is the edge of the component with the "biggest" angle. |




<div class='sourceset sourceset-android'>Android</div>


```kotlin
public fun CurvedModifier.padding(radial: Dp = 0.dp, angular: Dp = 0.dp): CurvedModifier
```


Apply `angular` dp space before and after the component, and `radial` dp space to the outer and
inner edges.

#### Parameters

| | |
| --- | --- |
| radial | The space added to the outer and inner edges of the content, in dp. |
| angular | The space added before and after the content, in dp. |




<div class='sourceset sourceset-android'>Android</div>


```kotlin
public fun CurvedModifier.padding(all: Dp = 0.dp): CurvedModifier
```


Apply `all` dp space around the component.

#### Parameters

| | |
| --- | --- |
| all | The space added to all edges. |




