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