BorderSchema

@Serializable
data class BorderSchema(val color: ColorSchema, val thickness: Int, val radius: RadiusSchema?)

Draws a border around the tile, applied over the background in styledWith().

DSL helpers (mosaic-server):

border(color = color(themeColorOutline()), thickness = 1)
border(
color = color(themeColorOutline()),
thickness = 1,
radius = radius(topStart = 8, topEnd = 8, bottomStart = 8, bottomEnd = 8)
)
// border(color = ..., thickness = 1, radius = 8) ← WRONG — radius must be RadiusSchema, not Int

Constructors

Link copied to clipboard
constructor(color: ColorSchema, thickness: Int, radius: RadiusSchema?)

Properties

Link copied to clipboard
@SerialName(value = "color")
val color: ColorSchema
Link copied to clipboard
@SerialName(value = "radius")
val radius: RadiusSchema?
Link copied to clipboard
@SerialName(value = "thickness")
val thickness: Int