ClipSchema

@Serializable
data class ClipSchema(val shape: ShapeSchema)

Clips tile content to a ShapeSchema.

Applied as Modifier.clip(shape) before background and border in styledWith(). This means the background fill will be clipped to the shape, producing rounded/circular backgrounds without needing a rounded border.

DSL helpers (mosaic-server):

clip(circleShape())
clip(rectangleShape())
clip(roundedCornerShape(8)) // uniform radius
clip(roundedCornerShape(topStart = 8, topEnd = 8, bottomStart = 0, bottomEnd = 0))
clip(roundedCornerShape(radius = radius(topStart = 8, topEnd = 8, bottomStart = 0, bottomEnd = 0)))

Constructors

Link copied to clipboard
constructor(shape: ShapeSchema)

Properties

Link copied to clipboard
@SerialName(value = "shape")
val shape: ShapeSchema