# RadioButtonDefaults

Artifact: [androidx.compose.material:material](https://developer.android.com/jetpack/androidx/releases/compose-material) [View Source](https://cs.android.com/search?q=file:androidx/compose/material/RadioButton.kt+class:androidx.compose.material.RadioButtonDefaults) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-material#1.0.0) Common/AllAndroid/JVM
- Cmn

  ```
  object RadioButtonDefaults
  ```

*** ** * ** ***

Defaults used in `https://developer.android.com/reference/kotlin/androidx/compose/material/RadioButton.composable#RadioButton(kotlin.Boolean,kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Boolean,androidx.compose.foundation.interaction.MutableInteractionSource,androidx.compose.material.RadioButtonColors)`.

## Summary

| ### Public functions |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/material/RadioButtonColors` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/compose/material/RadioButtonDefaults#colors(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color)(selectedColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, unselectedColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color)` Creates a `https://developer.android.com/reference/kotlin/androidx/compose/material/RadioButtonColors` that will animate between the provided colors according to the Material specification. | Cmn |

## Public functions

### colors

Cmn Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-material#1.10.0)

```
@Composable
fun colors(
    selectedColor: Color = MaterialTheme.colors.secondary,
    unselectedColor: Color = MaterialTheme.colors.onSurface.copy(alpha = 0.6f),
    disabledColor: Color = MaterialTheme.colors.onSurface.copy(alpha = ContentAlpha.disabled)
): RadioButtonColors
```

Creates a `https://developer.android.com/reference/kotlin/androidx/compose/material/RadioButtonColors` that will animate between the provided colors according to the Material specification.

| Parameters |
|---|---|
| `selectedColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = MaterialTheme.colors.secondary` | the color to use for the RadioButton when selected and enabled. |
| `unselectedColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = MaterialTheme.colors.onSurface.copy(alpha = 0.6f)` | the color to use for the RadioButton when unselected and enabled. |
| `disabledColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = MaterialTheme.colors.onSurface.copy(alpha = ContentAlpha.disabled)` | the color to use for the RadioButton when disabled. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/material/RadioButtonColors` | the resulting `https://developer.android.com/reference/kotlin/androidx/compose/material/RadioButtonColors` used for the RadioButton |