Radio
Import
import { Radio } from '@resultadosdigitais/tangram-components'
Properties
name
value
label
checked
defaultChecked
disabled
error
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).
Feedback
Para reportar algum problema, solicitar novos ícones, solicitar novos casos de uso de componentes, tirar dúvidas, enviar sugestões ou reportar bugs, entre em contato pelo nosso canal no Slack #tangram-design-system.