Radio
A radio button component.
Usage
Demonstration
![](https://legacy-docs.aragon.org/~gitbook/image?url=https%3A%2F%2F1303901111-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FqkA65ZBta5cBbldyxyst%252Fuploads%252Fgit-blob-fb91a29ca928361567c9473be008d823ec33187b%252FSchermata%25202022-06-25%2520alle%252023.01.21.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=cc89b4c6&sv=1)
Props
checked
checked
Type:
Boolean
Default:
false
Whether it is checked or not.
disabled
disabled
Type:
Boolean
Default:
false
Set to true
to disable the radio.
id
id
Type:
String
orNumber
When the <Radio />
is nested in a <RadioGroup />
, this value is passed to the <RadioGroup />
's onChange
handler when the radio is checked.
If not, it is passed to the onCheck
handler when the radio is checked.
onChange
onChange
Type:
Function
:(id: String|Number) -> *
This callback is called whenever the user selects the radio.
Arguments:
id
: The value passed as theid
prop.
Last updated