RadioGroup

The RadioGroup component is a controlled component input field that handles a group of Radio buttons.

Props

Name
Type
Default
Description
onChange*
func
onChange handler.
name*
string
children
node
A JSX node
description
string
Renders a description text underneath the input.
direction
arrayOf, string
column
The direction of the radio items
disabled
bool
Sets disabled
errorMessage
string
Renders a red error message for validation underneath the input.
isValid
bool
Renders the input as valid or invalid
legend
string
Renders a legend.
space
number, string, array
1.5
The space between the radio items
value
string

Examples

Disabled

Row

With dynamic description

With error message

With dynamic description