RadioButtonDefaults


@ExperimentalTvMaterial3Api
object RadioButtonDefaults


Defaults used in RadioButton.

Summary

Public functions

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.

Public functions

colors

@Composable
fun colors(
    selectedColor: Color = RadioButtonTokens.SelectedIconColor.toColor(),
    unselectedColor: Color = RadioButtonTokens.UnselectedIconColor.toColor(),
    disabledSelectedColor: Color = RadioButtonTokens.DisabledSelectedIconColor .toColor() .copy(alpha = RadioButtonTokens.DisabledSelectedIconOpacity),
    disabledUnselectedColor: Color = RadioButtonTokens.DisabledUnselectedIconColor .toColor() .copy(alpha = RadioButtonTokens.DisabledUnselectedIconOpacity)
): RadioButtonColors

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

Parameters
selectedColor: Color = RadioButtonTokens.SelectedIconColor.toColor()

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

unselectedColor: Color = RadioButtonTokens.UnselectedIconColor.toColor()

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

disabledSelectedColor: Color = RadioButtonTokens.DisabledSelectedIconColor .toColor() .copy(alpha = RadioButtonTokens.DisabledSelectedIconOpacity)

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

disabledUnselectedColor: Color = RadioButtonTokens.DisabledUnselectedIconColor .toColor() .copy(alpha = RadioButtonTokens.DisabledUnselectedIconOpacity)

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

Returns
RadioButtonColors

the resulting RadioButtonColors used for the RadioButton