Interruptor que se estira según la velocidad y se aplasta al llegar.
npx shadcn@latest add https://reactbits.dev/r/SquishSwitch-TS-TW
Para acciones frecuentes: confirmar, marcar, valorar. El feedback convierte un clic en una sensación.
| Prop | Tipo | Por defecto |
|---|---|---|
| checked | boolean | undefined |
| defaultChecked | boolean | false |
| onChange | (checked: boolean) => void | - |
| label | string | "" |
| disabled | boolean | false |
| trackColor | string | "#27272a" |
| trackOnColor | string | "#f5f5f5" |
| thumbColor | string | "" |
| thumbOnColor | string | "" |
| width | number | 76 |
| height | number | 38 |
| radius | number | 19 |
| speed | number | 50 |
| stretch | number | 36 |
| hoverScale | number | 1.035 |
| colorDuration | number | 320 |
| ariaLabel | string | - |
| className | string | "" |
| id | string | - |