Gift box

A wrapped box with a bow. Hover, focus or tap and the lid lifts off, light pours out and sparkles float up.

Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.

GiftBox3D props

PropTypeDefaultDescription
sizenumber150Box width in px.
colors[string, string]["#7c3aed", "#fbbf24"]Box and ribbon colours.
openbooleanControlled open state. Leave unset to let the box manage itself.
onOpenChange(open: boolean) => voidCalled with the new open state when the box opens or closes.
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