Style

constructor(colors: Colors, borders: Borders, scale: Scale, shapes: Shapes, alpha: Alpha)

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.