Component packs › Giftwrap › Bow Toggle
The knot slides along the ribbon and the bow ties itself: two loops pull out of the knot on a spring.
Bow Toggle is a toggle 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: parametric bow, two springs, satin ribbon.
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 |
|---|---|---|---|
checked | boolean | ||
disabled | boolean | ||
label | string | Visible label (also the accessible name). | |
dark | boolean | follows the page | Force the dark (true) or light (false) look. Default: follows the page. |
onChange | (on: boolean) => void | ||
autoplay | number | false | Showcase mode: toggles every N ms while visible. |
readonly checked: booleansetChecked(v: boolean, silent?: boolean): voiddestroy(): voidimport BowToggle from './BowToggle';
<BowToggle />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Skeuomorphic UI.