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

externalPadding

Sets the external padding for all four edges (top, end, bottom, start) of the component.

externalPadding

Source set: Common
@ExperimentalFoundationStyleApi
fun ExternalPaddingScope.externalPadding(value: Dp)

Sets the external padding for all four edges (top, end, bottom, start) of the component. The external padding is the space between the edge of the component and its border (if any). The width/height of the component includes external padding.

This property is not inherited

Parameters

value The amount of padding to apply to all four edges.

externalPadding

Source set: Common
@ExperimentalFoundationStyleApi
fun ExternalPaddingScope.externalPadding(start: Dp, top: Dp, end: Dp, bottom: Dp)

Sets the external padding for all four edges (top, end, bottom, start) of the component. The external padding is the space between the edge of the component and its border (if any). The width/height of the component includes external padding.

This property is not inherited

Parameters

start The padding for the start edge.
top The padding for the top edge.
end The padding for the end edge.
bottom The padding for the bottom edge.

externalPadding

Source set: Common
@ExperimentalFoundationStyleApi
fun ExternalPaddingScope.externalPadding(horizontal: Dp, vertical: Dp)

Sets the external padding for the vertical (top and bottom) and horizontal (start and end) edges of the component. The external padding is the space between the edge of the component and its border (if any). The width/height of the component includes external padding.

This property is not inherited

Parameters

vertical The padding for the top and bottom edges.
horizontal The padding for the start and end edges.

externalPadding

Source set: Common
@ExperimentalFoundationStyleApi
fun <T> T.externalPadding(paddingValues: PaddingValues)
    where T : ExternalPaddingScope, T : CompositionLocalAccessorScope

Sets the external padding for the component. The external padding is the space between the edge of the component and its border (if any). The width/height of the component includes external padding.

This property is not inherited

Parameters

paddingValues The PaddingValues to apply to the external padding.

Last updated: