Component packs › Washi › Dispenser Button

Dispenser Button

Tape pulls off the turning roll while your action runs, tears on the serrated blade and sticks the result beside it.

Dispenser Button is a button from Washi, a component pack with 6 tape components: Controls made of washi tape: torn ends, printed patterns, strips that unroll, stick, peel and rip. Price: $2 for the whole pack.

Built with: async action, tear on the blade, torn piece result.

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.

Dispenser Button props

PropTypeDefaultDescription
labelstring
donestringWritten on the torn piece when the action succeeds.
failedstringWritten on the torn piece when the action throws.
action() => unknownYour work: the tape tears when it resolves.
patternWzPattern
darkboolean
autoplaynumber | falseShowcase mode: presses itself every N ms while visible.

Methods on the ref

Use it in React

import DispenserButton from './DispenserButton';

<DispenserButton />

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

More in Washi

Good for: Skeuomorphic UI.