componente · @solu30/ui-kit/input
SwitchWithLabel
El componente, montado
Cargando el espécimen…
Cargando el chunk del paquete instalado…
De dónde se importa
import { SwitchWithLabel } from '@solu30/ui-kit/input'Props
| Prop | Requerida | Tipo | Qué hace |
|---|---|---|---|
| checked | sí | boolean | — |
| onChange | sí | (checked: boolean) => void | — |
| label | opcional | string | — |
| description | opcional | string | — |
| disabled | opcional | boolean | — |
| loading | opcional | boolean | — |
| size | opcional | 'sm' | 'md' | — |
| color | opcional | SwitchColor | — |
| className | opcional | string | — |