# RadioButtonDefaults

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

  ```
  object RadioButtonDefaults
  ```

*** ** * ** ***

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

## Summary

| ### Public functions |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/material3/RadioButtonColors` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/compose/material3/RadioButtonDefaults#colors()()` Creates a `https://developer.android.com/reference/kotlin/androidx/compose/material3/RadioButtonColors` that will animate between the provided colors according to the Material specification. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/material3/RadioButtonColors` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/compose/material3/RadioButtonDefaults#colors(androidx.compose.ui.graphics.Color,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, disabledSelectedColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledUnselectedColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color )` Creates a `https://developer.android.com/reference/kotlin/androidx/compose/material3/RadioButtonColors` that will animate between the provided colors according to the Material specification. | Cmn |

## Public functions

### colors

Cmn

```
@Composable
fun colors(): RadioButtonColors
```

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

### colors

Cmn

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

Creates a `https://developer.android.com/reference/kotlin/androidx/compose/material3/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 = Color.Unspecified` | the color to use for the RadioButton when selected and enabled. |
| `unselectedColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = Color.Unspecified` | the color to use for the RadioButton when unselected and enabled. |
| `disabledSelectedColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = Color.Unspecified` | the color to use for the RadioButton when disabled and selected. |
| `disabledUnselectedColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = Color.Unspecified` | the color to use for the RadioButton when disabled and not selected. |

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