Vault

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.

Vault3D props

PropTypeDefaultDescription
codenumber[][12, 47, 83]Numbers from 0 to 99, entered in order.
childrenReactNodeWhat is inside.
sizenumber280Size of the safe in px.
onOpen() => voidCalled once the correct code has been entered and the door opens.
classNamestringExtra classes added to the outer element.

More components

Guides

Start

Cards

Scenes

Controls & text

Buttons

More cards

UI elements

Form controls

App components

Text & backgrounds

Showpieces

Blocks