Google is committed to advancing racial equity for Black communities. See how.

RadioButtonColors

@Stable interface RadioButtonColors
androidx.compose.material.RadioButtonColors

Represents the color used by a RadioButton in different states.

See RadioButtonConstants.defaultColors for the default implementation that follows Material specifications.

Summary

Public methods
abstract Color
radioColor(enabled: Boolean, selected: Boolean)

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

Public methods

radioColor

abstract fun radioColor(
    enabled: Boolean,
    selected: Boolean
): Color

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

Parameters
enabled: Boolean whether the RadioButton is enabled
selected: Boolean whether the RadioButton is selected