A 3x3 cube made of 27 real cubies. Scramble it and layers turn one by one. Solve plays the same moves backwards. Drag to look around.
Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.
| Prop | Type | Default | Description |
|---|---|---|---|
| size | number | 210 | Edge length of the whole cube in px. |
| turnSeconds | number | 0.32 | Seconds per layer turn when scrambling. |
| className | string | Extra classes added to the outer element. |