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).