grommet
Version:
focus on the essential experience
59 lines (42 loc) • 1.06 kB
Markdown
## RadioButtonGroup
A group of radio buttons.
[](https://storybook.grommet.io/?selectedKind=RadioButtonGroup&full=0&addons=0&stories=1&panelRight=0) [](https://codesandbox.io/s/github/grommet/grommet-sandbox?initialpath=radiobuttongroup&module=%2Fsrc%2FRadioButtonGroup.js)
## Usage
```javascript
import { RadioButtonGroup } from 'grommet';
<RadioButtonGroup />
```
## Properties
**name**
Required. The DOM name attribute value to use for the underlying <input/> elements.
```
string
```
**onChange**
Function that will be called when the user clicks on of the radio
buttons. It will be passed a React event object.
```
function
```
**options**
Required. Options can be either a string or an object.
```
[string]
[{
disabled: boolean,
id: string,
label:
string
element,
value: string
}]
```
**value**
Currently selected option value.
```
string
```
## Intrinsic element
```
div
```