innerPadding

expect fun Modifier.innerPadding(start: Dp = 0.dp, top: Dp = 0.dp, end: Dp = 0.dp, bottom: Dp = 0.dp): Modifier(source)
expect fun Modifier.innerPadding(horizontal: Dp = 0.dp, vertical: Dp = 0.dp): Modifier(source)

See the KDoc of the overload with one Dp parameter for platform differences.


This delegates to the CSS padding property on JS DOM and adds the padding inside. For consistency on different platforms, please use it as the last modifier after the other modifiers such as background and clickable. See the KDoc of the padding overload with one Dp parameter for more information.

See also

actual fun Modifier.innerPadding(start: Dp, top: Dp, end: Dp, bottom: Dp): Modifier(source)
actual fun Modifier.innerPadding(horizontal: Dp, vertical: Dp): Modifier(source)
actual fun Modifier.innerPadding(start: Dp, top: Dp, end: Dp, bottom: Dp): Modifier(source)
actual fun Modifier.innerPadding(horizontal: Dp, vertical: Dp): Modifier(source)