A safe with a real combination dial. Turn it to each number, let go to lock it in, and the heavy door swings open.
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 |
|---|---|---|---|
| code | number[] | [12, 47, 83] | Numbers from 0 to 99, entered in order. |
| children | ReactNode | What is inside. | |
| size | number | 280 | Size of the safe in px. |
| onOpen | () => void | Called once the correct code has been entered and the door opens. | |
| className | string | Extra classes added to the outer element. |