Component packs › Giftwrap › Gift Button
The box lid pops off with its bow and wobbles while your action runs, then drops back on with a bounce.
Gift Button is a button from Giftwrap, a component pack with 6 gift controls: Reward and reveal controls made of printed paper, satin ribbon and a bow that ties itself. Price: $2 for the whole pack.
Built with: async lid, wobble while busy, label swap.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | ||
doneLabel | string | ||
action | () => Promise<unknown> | unknown | waits 1.2 s | Runs on press; the lid stays up until it settles. Default: waits 1.2 s. |
disabled | boolean | ||
dark | boolean | follows the page | Force the dark (true) or light (false) look. Default: follows the page. |
autoplay | number | false | Showcase mode: presses itself every N ms while visible. |
press(): Promise<void>destroy(): voidimport GiftButton from './GiftButton';
<GiftButton />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Skeuomorphic UI.