---
title: "RadioButton"
description: "Material Design radio button."
type: "component"
social_image: "/static/images/tv/radio-button.png"
---

<div class='type'>Composable Component</div>



Material Design radio button.

<img loading='lazy' class='hero-img' alt='Radio button image' src='/static/images/tv/radio-button.png'>

<a id='references'></a>

<div class='sourceset sourceset-android'>Android</div>


```kotlin
@Composable
fun RadioButton(
    selected: Boolean,
    onClick: (() -> Unit)?,
    modifier: Modifier = Modifier,
    enabled: Boolean = true,
    colors: RadioButtonColors = RadioButtonDefaults.colors(),
    interactionSource: MutableInteractionSource? = null,
)
```


#### Parameters

| | |
| --- | --- |
| selected | whether this radio button is selected or not |
| onClick | called when this radio button is clicked. If `null`, then this radio button will not be interactable, unless something else handles its input events and updates its state. |
| modifier | the `Modifier` to be applied to this radio button |
| enabled | controls the enabled state of this radio button. When `false`, this component will not respond to user input, and it will appear visually disabled and disabled to accessibility services. |
| colors | `RadioButtonColors` that will be used to resolve the color used for this radio button in different states. See `RadioButtonDefaults.colors`. |
| interactionSource | an optional hoisted `MutableInteractionSource` for observing and emitting `Interaction`s for this radio button. You can use this to change the radio button's appearance or preview the radio button in different states. Note that if `null` is provided, interactions will still happen internally. |






## Code Examples
### RadioButtonSample
```kotlin
@Composable
fun RadioButtonSample() {
    RadioButton(selected = true, onClick = {})
}
```

