object RadioDefaults


Contains the default values used by the Radio selection control.

Summary

Public functions

RadioColors
@Composable
colors(selectedColor: Color, unselectedColor: Color)

Creates a RadioColors for use in a Radio selection control.

Public functions

colors

@Composable
fun colors(
    selectedColor: Color = MaterialTheme.colorScheme.primary,
    unselectedColor: Color = MaterialTheme.colorScheme.onSurfaceVariant
): RadioColors

Creates a RadioColors for use in a Radio selection control.

Parameters
selectedColor: Color = MaterialTheme.colorScheme.primary

The color of the radio control when enabled and selected.

unselectedColor: Color = MaterialTheme.colorScheme.onSurfaceVariant

The color of the radio control when enabled and unselected.