Components

Radio

Radio enables a user to make a single selection from a group of options.

Every radio element must be labeled appropriately. There are a few ways to label radios and groups of radios:

  • To group multiple radio inputs, use the Fieldset component in addition to giving radio buttons the same name attribute
  • Use the label prop to label individual radio inputs
Choose a network
import { Radio } from '@sproutsocial/racine'

Properties

System props

System props apply standard sets of properties to a component that can be used to alter its appearance on the fly.

NameTypeDefaultDescriptionRequired?
idstring
ID of the form element, should match the "for" value of the associated label
namestring
labelstring
Label text to display next to the radio input
ariaLabelstring
Label used to describe the input if not used with an accompanying visual label
valuestring
checkedboolean
disabledbooleanfalse
qaObject
onChange(e: SyntheticInputEvent<HTMLInputElement>) => void
onFocus(e: SyntheticFocusEvent<HTMLInputElement>) => void
onBlur(e: SyntheticFocusEvent<HTMLInputElement>) => void