PaddingSchema

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

Inner spacing applied between the tile's border/edge and its content.

All values are in dp. Maps to PaddingValues(top, end, bottom, start) in Compose. Applied as the last modifier in styledWith(), i.e. inside the border.

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

padding(horizontal = 16, vertical = 8)           // start=16, end=16, top=8, bottom=8
padding(horizontal = 16, top = 8, bottom = 24) // mixed
padding(top = 8, end = 16, bottom = 8, start = 16) // explicit four sides
// padding(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