Think of a question, then shake the ball. It rattles around and an answer floats up in the window.
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 |
|---|---|---|---|
| answers | string[] | DEFAULT | Possible answers. One is picked at random after each shake. |
| size | number | 220 | Ball diameter in px. |
| onAnswer | (answer: string) => void | Called with the chosen answer after each shake. | |
| className | string | Extra classes added to the outer element. |