Package-level declarations

Types

Link copied to clipboard
@Serializable
sealed interface BackgroundSchema

Fill applied to a tile by StyleSchema.background. Each variant maps 1:1 to a Compose Brush factory and is applied through Modifier.background(brush, alpha = alpha).

Link copied to clipboard
@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().

Link copied to clipboard
@Serializable
data class ClipSchema(val shape: ShapeSchema)

Clips tile content to a ShapeSchema.

Link copied to clipboard
@Serializable
data class ColorStopSchema(val color: ColorSchema, val stop: Float? = null)

A single color of a gradient, optionally pinned to a position along the gradient axis.

Link copied to clipboard
@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.

Link copied to clipboard
@Serializable
data class OffsetSchema(val x: Int? = null, val y: Int? = null)

A two-dimensional position used by gradient BackgroundSchema variants.

Link copied to clipboard
@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.

Link copied to clipboard
@Serializable
data class RadiusSchema(val topStart: Int, val topEnd: Int, val bottomStart: Int, val bottomEnd: Int)

Per-corner radius in dp, used by BorderSchema and ShapeSchema.RoundedCornerRectangle.

Link copied to clipboard
@Serializable
sealed interface ShapeSchema

Discriminated union of Compose shapes used for ClipSchema and BorderSchema.radius.

Link copied to clipboard
@Serializable
data class SizeSchema(val width: SizeSchema.Behavior.Horizontal, val height: SizeSchema.Behavior.Vertical)

Defines the width and height constraints for a tile.

Link copied to clipboard
@Serializable
data class StyleSchema(val size: SizeSchema, val margin: MarginSchema? = null, val padding: PaddingSchema? = null, val background: BackgroundSchema? = null, val border: BorderSchema? = null, val clip: ClipSchema? = null, val windowInsets: WindowInsetsSchema? = null)

Container for all visual layout and decoration properties applied to a tile.

Link copied to clipboard
@Serializable
enum TileModeSchema : Enum<TileModeSchema>

Mirrors Compose's TileMode — how a gradient shader fills the region outside its own bounds.

Link copied to clipboard
@Serializable
sealed interface WindowInsetsSchema

Specifies which system window insets should be applied as padding to a tile.