Tarjeta de dos caras que gira en 3D con clic o arrastre.
npx shadcn@latest add https://reactbits.dev/r/FlipCard-TS-TW
Para acciones frecuentes: confirmar, marcar, valorar. El feedback convierte un clic en una sensación.
| Prop | Tipo | Por defecto |
|---|---|---|
| front | ReactNode | null |
| back | ReactNode | null |
| flipped | boolean | - |
| defaultFlipped | boolean | false |
| onFlipChange | (flipped: boolean) => void | - |
| axis | 'y' | 'x' | 'y' |
| flipOnClick | boolean | true |
| draggable | boolean | true |
| dragDistance | number | 0 |
| tilt | boolean | true |
| tiltMax | number | 12 |
| glare | boolean | true |
| glareOpacity | number | 0.22 |
| hoverScale | number | 1.03 |
| perspective | number | 1100 |
| stiffness | number | 170 |
| damping | number | 20 |
| width | number | 300 |
| height | number | 400 |
| radius | number | 22 |
| background | string | "#27272a" |
| color | string | "#f5f5f5" |
| shadow | boolean | true |
| shadowColor | string | "#000000" |
| shadowOpacity | number | 0.45 |
| disabled | boolean | false |
| ariaLabel | string | "Flip card" |
| className | string | "" |