Style

@Immutable
data class Style(val colors: Colors, val borders: Borders, val scale: Scale, val shapes: Shapes, val alpha: Alpha)

Style class for components.

Since

0.2.0

Parameters

colors

Defines the background color based on the current state via it's Colors.colorFor function.

scale

Defines the button scale based on the current state via it's Scale.scaleFor function.

borders

Defines the border based on the current state via it's Colors.colorFor function.

shapes

Defines the button shape based on its current state via it's Shapes.shapeFor function.

alpha

Defines the button alpha based on its current state via it's Alpha.alphaFor function. Note you can still set alpha yourself if needed via a Modifier. This parameter is provided by convenience to help state driven Alpha.

Constructors

Link copied to clipboard
constructor(colors: Colors, borders: Borders, scale: Scale, shapes: Shapes, alpha: Alpha)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard