Radio
Notes
Props
- error
bool
A flag indicating that the radio input is in an error state.
- errorMessage
node
A message to display when the radio input is in an error state. Wrapped in a
FieldStatus
component by default.
bool
A flag indicating that the radio input is in an error state.
node
A message to display when the radio input is in an error state. Wrapped in a FieldStatus
component by default.
An optional wrapper for groups of radio inputs. Passes name
, required
,
onChange
handler, and current checked
status based on the value
prop
to any child radio inputs.
node
Components to be wrapped. Radio
components and input
elements with
type="radio"
have name
, onChange
, checked
, and required
passed to them.
Other elements are passed through as-is.
string
func
bool
string
The value of the currently selected radio button. A convenient way to handle controlled radio
inputs. If the value
property of the radio input matches the passed in value
, that input
will be checked.
string
*Required description of radio buttons. Helpful for accessibility.