RadioButtonDefaults


Defaults used in RadioButton.

Summary

Public functions

RadioButtonColors

Creates a RadioButtonColors that will animate between the provided colors according to the Material specification.

Cmn
RadioButtonColors
@Composable
colors(
    selectedColor: Color,
    unselectedColor: Color,
    disabledSelectedColor: Color,
    disabledUnselectedColor: Color
)

Creates a RadioButtonColors that will animate between the provided colors according to the Material specification.

Cmn

Public functions

colors

@Composable
fun colors(): RadioButtonColors

Creates a RadioButtonColors that will animate between the provided colors according to the Material specification.

colors

@Composable
fun colors(
    selectedColor: Color = Color.Unspecified,
    unselectedColor: Color = Color.Unspecified,
    disabledSelectedColor: Color = Color.Unspecified,
    disabledUnselectedColor: Color = Color.Unspecified
): RadioButtonColors

Creates a RadioButtonColors that will animate between the provided colors according to the Material specification.

Parameters
selectedColor: Color = Color.Unspecified

the color to use for the RadioButton when selected and enabled.

unselectedColor: Color = Color.Unspecified

the color to use for the RadioButton when unselected and enabled.

disabledSelectedColor: Color = Color.Unspecified

the color to use for the RadioButton when disabled and selected.

disabledUnselectedColor: Color = Color.Unspecified

the color to use for the RadioButton when disabled and not selected.

Returns
RadioButtonColors

the resulting RadioButtonColors used for the RadioButton