ButtonColors

interface ButtonColors


Represents the background and content colors used in a button in different states.

See ButtonDefaults.primaryButtonColors for the default colors used in a primary styled Button. See ButtonDefaults.secondaryButtonColors for the default colors used in a secondary styled Button.

Summary

Public functions

State<Color>

Represents the background color for this button, depending on enabled.

State<Color>

Represents the content color for this button, depending on enabled.

Public functions

backgroundColor

Added in 1.0.0
@Composable
fun backgroundColor(enabled: Boolean): State<Color>

Represents the background color for this button, depending on enabled.

Parameters
enabled: Boolean

whether the button is enabled

contentColor

Added in 1.0.0
@Composable
fun contentColor(enabled: Boolean): State<Color>

Represents the content color for this button, depending on enabled.

Parameters
enabled: Boolean

whether the button is enabled