Function

contentPaddingHorizontal

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

contentPaddingHorizontal

Source set: Common
@Deprecated(
    DeprecatedStyleProperty,
    replaceWith = ReplaceWith(""),
    level = DeprecationLevel.WARNING,
)
public fun ContentPaddingScope.contentPaddingHorizontal(value: Dp)

Sets the padding for the horizontal (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 start and end edges.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: