Radio
Importβ
import { Radio } from '@resultadosdigitais/tangram-components'
Propertiesβ
nameβ
valueβ
labelβ
checkedβ
defaultCheckedβ
disabledβ
requiredβ
sizeβ
invertedβ
rootRefβ
onChangeβ
| Type | func |
|---|---|
| Param | event React.SyntheticEvent - The event source of the callback. |
Descriptionβ
Callback fired when the Radio is changed.
onFocusβ
| Type | func |
|---|---|
| Param | event React.SyntheticEvent - The event source of the callback. |
Descriptionβ
Callback fired when the Radio is focused.
onBlurβ
| Type | func |
|---|---|
| Param | event React.SyntheticEvent - The event source of the callback. |
Descriptionβ
Callback fired when the Radio is blurred.
<RadioGroup />β
Importβ
import { RadioGroup } from '@resultadosdigitais/tangram-components'
Propertiesβ
childrenβ
defaultValueβ
valueβ
| Type | any |
|---|
Descriptionβ
Used for Controlled component.
Set to an empty string '' if you don't want any of the available options to be selected.
name πβ
onChangeβ
| Type | func |
|---|---|
| Param | event React.SyntheticEvent - The event source of the callback. |
Descriptionβ
Callback fired when some option is checked.
rowβ
| Type | bool |
|---|---|
| Default | false |
Descriptionβ
Sets the alignment in the row direction. By default is false (column direction).