API reference

RadioButtonDefaults Object

Defaults used in SpatialRadioButton.

Signature

object RadioButtonDefaults

Methods

colors ()
Creates a RadioButtonColors that will animate between the provided colors.
Signature
fun colors(): RadioButtonColors
Returns
RadioButtonColors
colors ( selectedColor , selectedDotColor , unselectedColor , disabledSelectedColor , disabledSelectedDotColor , disabledUnselectedColor )
Creates a RadioButtonColors that will animate between the provided colors.
Signature
fun colors(
    selectedColor: Color,
    selectedDotColor: Color,
    unselectedColor: Color,
    disabledSelectedColor: Color,
    disabledSelectedDotColor: Color,
    disabledUnselectedColor: Color,
): RadioButtonColors
Parameters
selectedColor: Color  the color to use for the RadioButton when selected and enabled.
selectedDotColor: Color  the color to use for the RadioButton's inner dot when selected and enabled.
unselectedColor: Color  the color to use for the RadioButton when unselected and enabled.
disabledSelectedColor: Color  the color to use for the RadioButton when disabled and selected.
disabledSelectedDotColor: Color  the color to use for the RadioButton's inner dot when disabled and selected.
disabledUnselectedColor: Color  the color to use for the RadioButton when disabled and not selected.
Returns
RadioButtonColors  the resulting RadioButtonColors used for the RadioButton