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

ContentPaddingScope

An interface that introduces the contentPadding property to a Style receiver scope interface.

Source set: Common
@ExperimentalFoundationStyleApi
interface ContentPaddingScope

An interface that introduces the contentPadding property to a Style receiver scope interface.

Functions

contentPaddingStart

fun contentPaddingStart(value: Dp)

Sets the padding for the start edge 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 the start edge.

contentPaddingEnd

fun contentPaddingEnd(value: Dp)

Sets the padding for the end edge 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 the end edge.

contentPaddingTop

fun contentPaddingTop(value: Dp)

Sets the padding for the top edge 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 the top edge.

contentPaddingBottom

fun contentPaddingBottom(value: Dp)

Sets the padding for the bottom edge 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 the bottom edge.

Last updated: