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

ExternalPaddingScope

An interface that introduces the externalPadding properties to a Style receiver scope interface.

Source set: Common
@ExperimentalFoundationStyleApi
interface ExternalPaddingScope

An interface that introduces the externalPadding properties to a Style receiver scope interface.

Functions

externalPaddingStart

fun externalPaddingStart(value: Dp)

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

externalPaddingEnd

fun externalPaddingEnd(value: Dp)

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

externalPaddingTop

fun externalPaddingTop(value: Dp)

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

externalPaddingBottom

fun externalPaddingBottom(value: Dp)

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

Last updated: