Interface

ButtonColors

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

Source set: Common
public interface ButtonColors

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

See ButtonDefaults.buttonColors for the default colors used in a Button. See ButtonDefaults.outlinedButtonColors for the default colors used in a OutlinedButton. See ButtonDefaults.textButtonColors for the default colors used in a TextButton.

Functions

backgroundColor

Source set: Common
@Composable public fun backgroundColor(enabled: Boolean): State<Color>

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

Parameters

enabled whether the button is enabled

contentColor

Source set: Common
@Composable public fun contentColor(enabled: Boolean): State<Color>

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

Parameters

enabled whether the button is enabled
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: