Buttons

class Buttons(val primary: Color, val secondary: Color, val tertiary: Color, val success: Color, val error: Color, val warning: Color, val info: Color, val disabled: Color)

Button surface colors.

Constructors

Link copied to clipboard
constructor(primary: Color, secondary: Color, tertiary: Color, success: Color, error: Color, warning: Color, info: Color, disabled: Color)

Properties

Link copied to clipboard

A button that cannot be tapped. Pair with Foreground.disabled.

Link copied to clipboard

A destructive button.

Link copied to clipboard
val info: Color

A button carrying neutral information.

Link copied to clipboard

The main action of a screen. One per screen.

Link copied to clipboard

A secondary action, alongside a primary one.

Link copied to clipboard

A button confirming something.

Link copied to clipboard

A low-emphasis action — a text button, an inline link-like control.

Link copied to clipboard

A button whose consequence needs flagging before it is tapped.