Spacing

data class Spacing(val top: Length, val right: Length, val bottom: Length, val left: Length)

Box-model spacing (padding/margin) as four explicit sides.

The wire format still accepts the CSS-uniform shorthand ({ "value", "unit" }), but it is expanded to all four sides on decode. The internal model is always per-side so consumers never branch on uniform-vs-sides.

Constructors

Link copied to clipboard
constructor(top: Length, right: Length, bottom: Length, left: Length)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val top: Length