Component packs › Giftwrap › Bow Toggle

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.

Bow Toggle props

PropTypeDefaultDescription
checkedboolean
disabledboolean
labelstringVisible label (also the accessible name).
darkbooleanfollows the pageForce the dark (true) or light (false) look. Default: follows the page.
onChange(on: boolean) => void
autoplaynumber | falseShowcase mode: toggles every N ms while visible.

Methods on the ref

Use it in React

import BowToggle from './BowToggle';

<BowToggle />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Giftwrap

Good for: Skeuomorphic UI.