Skip to main content

Radio

Select a single option from a group, built on Base UI.

View as Markdown

Installation

Component API

PropTypeDefaultDescription
optionsRadioOption[]-
labelstring-
defaultValuestring-
valuestring-Controlled selection.
Controlled selection.
onValueChange(value: string) => void-
variantplain | cardplaincard draws each option as a card the whole of which picks it, with its icon in a tile and the circle at the end.
card draws each option as a card the whole of which picks it, with its icon in a tile and the circle at the end.
sizesm | md | lgmdThe circle, the dot and the label together.
The circle, the dot and the label together.
shapenone | rounded | pillrounded
disabledbooleanfalseBlocks interaction and dims every option.
Blocks interaction and dims every option.
animatedbooleantrue
classNamestring-
focusboolean | stringtrue