# RadioButtonDefaults

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


```
object RadioButtonDefaults
```

<br />

*** ** * ** ***

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

## Summary

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

## Public functions

### colors

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/tv#1.0.0)

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

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

### colors

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/tv#1.1.0)

```
@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/tv/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/tv/material3/RadioButtonColors` | the resulting `https://developer.android.com/reference/kotlin/androidx/tv/material3/RadioButtonColors` used for the RadioButton |