RadioGroup API
Documentação da API para o componente React RadioGroup . Aprenda sobre as propriedades disponíveis e a API CSS.
Importação
import RadioGroup from '@mui/material/RadioGroup';
// ou
import { RadioGroup } from '@mui/material';Propriedades
Propriedades do componente FormGroup também estão disponíveis.
| Nome | Tipo | Padrão | Descrição |
|---|---|---|---|
| children | node | O conteúdo do componente. | |
| defaultValue | any | The default input value. Use when the component is not controlled. | |
| name | string | The name used to reference the value of the control. If you don't provide this prop, it falls back to a randomly generated name. | |
| onChange | func | Callback fired when a radio button is selected. Signature: function(event: object) => voidevent: The event source of the callback. You can pull out the new value by accessing event.target.value (string). | |
| value | any | Value of the selected radio button. The DOM API casts this to a string. |
O
ref é encaminhado para o elemento raiz.