API reference

Spacing Class

General spacing scale for layouts and component internals.

Signature

@Immutable
data class Spacing(
    val xSmall: Dp = 4.dp,
    val small: Dp = 8.dp,
    val medium: Dp = 12.dp,
    val large: Dp = 16.dp,
    val twoXLarge: Dp = 24.dp,
    val threeXLarge: Dp = 32.dp,
)

Constructors

Spacing ( xSmall , small , medium , large , twoXLarge , threeXLarge )
Signature
constructor(
    xSmall: Dp = 4.dp,
    small: Dp = 8.dp,
    medium: Dp = 12.dp,
    large: Dp = 16.dp,
    twoXLarge: Dp = 24.dp,
    threeXLarge: Dp = 32.dp,
)
Parameters
xSmall: Dp  4dp spacing by default
small: Dp  8dp spacing by default
medium: Dp  12dp spacing by default
large: Dp  16dp spacing by default
twoXLarge: Dp  24dp spacing by default
threeXLarge: Dp  32dp spacing by default
Returns
Spacing

Properties

large : Dp
[Get]
16dp spacing by default
Signature
val large: Dp
medium : Dp
[Get]
12dp spacing by default
Signature
val medium: Dp
small : Dp
[Get]
8dp spacing by default
Signature
val small: Dp
threeXLarge : Dp
[Get]
32dp spacing by default
Signature
val threeXLarge: Dp
twoXLarge : Dp
[Get]
24dp spacing by default
Signature
val twoXLarge: Dp
xSmall : Dp
[Get]
4dp spacing by default
Signature
val xSmall: Dp