API reference
API reference
Select your platform
No SDKs available
No versions available

RadioButtonDefaults Object

Defaults used in .SpatialRadioButton.

Signature

object RadioButtonDefaults

Functions

colors ()
Creates a RadioButtonColors that will animate between the provided colors.
Signature
fun colors(): RadioButtonColors
colors ( selectedColor , selectedDotColor , unselectedColor , disabledSelectedColor , disabledSelectedDotColor , disabledUnselectedColor )
Creates a RadioButtonColors that will animate between the provided colors.
Signature
fun colors(selectedColor: Color = Color.Unspecified, selectedDotColor: Color = Color.Unspecified, unselectedColor: Color = Color.Unspecified, disabledSelectedColor: Color = Color.Unspecified, disabledSelectedDotColor: Color = Color.Unspecified, disabledUnselectedColor: Color = Color.Unspecified): 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
the resulting RadioButtonColors used for the RadioButton
Did you find this page helpful?