Skip to content

RadioButton

@Composable



fun RadioButton(
    selected: Boolean, 
    onSelect: () -> Unit, 
    modifier: Modifier = Modifier, 
    enabled: Boolean = true, 
    texture: String = "radio", 
    variant: String = ThemeVariants.DEFAULT
)

A standard themed radio button with a filled center dot when selected.

Renders the themed texture state - a combined selected+hovered state is used when both apply and the theme defines it. See RadioGroup for a labeled option list.

Parameters

  • selected: Whether this option is currently selected.

  • onSelect: Invoked when this (unselected) option is clicked.

  • modifier: Additional modifiers applied to the outer container.

  • enabled: When false, pointer events are ignored and the TextureStates.DISABLED state is shown.

  • texture: The themed texture key to look up via LocalTheme.

  • variant: The theme variant of texture to use. See ThemeVariants.