Import
Basic Usage
Radio Props
color
'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning' | 'default'
default:"'primary'"
The color of the component. Supports both default and custom theme colors.
The size of the component.
small is equivalent to the dense radio styling.If
true, the component is disabled.The icon to display when the component is checked. Defaults to
<RadioButtonIcon checked />.The icon to display when the component is unchecked. Defaults to
<RadioButtonIcon />.The system prop that allows defining system overrides as well as additional CSS styles.
RadioGroup Props
Value of the selected radio button. The DOM API casts this to a string.
The default value. Use when the component is not controlled.
The name used to reference the value of the control. If you don’t provide this prop, it falls back to a randomly generated name.
Callback fired when a radio button is selected. You can pull out the new value by accessing
event.target.value (string).API Reference
- Radio API
- RadioGroup API
- Inherits ButtonBase API and FormGroup API