Interface

RadioButtonColors

Represents the color used by a RadioButton in different states.

Source set: Common
public interface RadioButtonColors

Represents the color used by a RadioButton in different states.

See RadioButtonDefaults.colors for the default implementation that follows Material specifications.

Functions

radioColor

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

Represents the main color used to draw the outer and inner circles, depending on whether the RadioButton is enabled / selected.

Parameters

enabled whether the RadioButton is enabled
selected whether the RadioButton is selected
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: