SwitchUnstyled API
Documentação da API para o componente React SwitchUnstyled . Aprenda sobre as propriedades disponíveis e a API CSS.
Importação
import SwitchUnstyled from '@mui/core/SwitchUnstyled';
// ou
import { SwitchUnstyled } from '@mui/core';Propriedades
Props of the nativo component are also available.
| Nome | Tipo | Padrão | Descrição |
|---|---|---|---|
| checked | bool | false | |
| className | string | ||
| component | elementType | ||
| components | { Input?: elementType, Root?: elementType, Thumb?: elementType, Track?: elementType | null } | {} | |
| componentsProps | object | {} | |
| defaultChecked | bool | false | |
| disabled | bool | false | |
| onChange | func | ||
| readOnly | bool | false | |
| required | bool | false |
O
ref é encaminhado para o elemento raiz.