MarginSchema

@Serializable
data class MarginSchema(val top: Int, val end: Int, val bottom: Int, val start: Int)

Outer spacing around the tile, applied before size constraints.

All values are in dp. Maps to PaddingValues(top, end, bottom, start) and applied via Modifier.padding as the second modifier in styledWith() (after windowInsets, before size).

DSL helpers (mosaic-server) — no single-argument overload exists:

margin(horizontal = 24, vertical = 0)
margin(horizontal = 24, top = 0, bottom = 8)
margin(top = 8, end = 0, bottom = 16, start = 0)
// margin(16) ← DOES NOT EXIST — will not compile

Constructors

Link copied to clipboard
constructor(top: Int, end: Int, bottom: Int, start: Int)

Properties

Link copied to clipboard
@SerialName(value = "bottom")
val bottom: Int
Link copied to clipboard
@SerialName(value = "end")
val end: Int
Link copied to clipboard
@SerialName(value = "start")
val start: Int
Link copied to clipboard
@SerialName(value = "top")
val top: Int