Radio API

API reference docs for theRadiocomponent. For examples and details on the usage of this component, visit the component demo page.

Props

PropTypeDescriptionDefault
labelReactNodeLabel for the radio button, typically required for accessibility purposes._
isDisabled?booleanWhen true, the radio will be announced as disabled to screen readers and styled to signify this.false
size?'standard'| 'large'The size of the radio.standard
value?stringThe value of the radio button._
checked?booleanIndicates whether the radio is checked, used in controlled components._
id?stringA unique ID for the radio button._
name?booleanThe name attribute of the radio, useful for grouping in forms._
description?ReactNodeDescription text displayed alongside the radio, providing additional context._
aria-describedby?stringDefines the ID of the element that provides additional information about the radio for accessibility purposes._
onBlur?functionEvent handler for when the radio loses focus._
onClick?functionEvent handler for when the radio is clicked._
onChange?functionFunction called when the radio value changes._
radioPosition'start' | 'end'Position the radio component with respect to Labelstart

Note: For id and aria-describedBy if a value is provided, the IDs will be merged. Otherwise, React.useId will be used to generate unique IDs to associate the labels appropriately.