Compose Unstyled 2.0 is out! Check the official announcement blog ->
Function

contentPaddingVertical

Sets the padding for the vertical (start and end) edges of the component's content.

contentPaddingVertical

Source set: Common
@ExperimentalFoundationStyleApi
fun ContentPaddingScope.contentPaddingVertical(value: Dp)

Sets the padding for the vertical (start and end) edges of the component's content. Content padding is the space between the component's border (if any) and its content. The width/height of the component includes content padding.

This property is not inherited

Parameters

value The amount of padding to apply to both top and bottom edges.

Last updated: