Radio

Examples

Controlled Radio

Copied to clipboard

Uncontrolled Radio

Copied to clipboard

Disabled Radio

Copied to clipboard

Custom label Radio

Copied to clipboard

Radio Props

The Radio component accepts the following props.

NameTypeRequiredDefaultDescription
className
string
''Additional classes added to the Radio.
isValid
bool
trueFlag to show if the Radio selection is valid or invalid.
isDisabled
bool
falseFlag to show if the Radio is disabled.
isChecked
bool
nullFlag to show if the Radio is checked.
onChange
func
() => undefinedA callback for when the Radio selection changes.
label
node
undefinedLabel text of the Radio.
id
string
Id of the Radio.
aria-label
custom
nullAria-label of the Radio.
name
string
Name for group of Radios