Component packs › Paper › Tear Coupon

Tear Coupon

Pull the stub and the tear runs down the perforation; past the point of no return it falls away and uncovers the code.

Tear Coupon is a reveal from Paper, a component pack with 7 components: Components that behave like real paper. Price: $2 for the whole pack.

Built with: hinged tear, torn fibre edge, gravity fall.

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.

Tear Coupon props

PropTypeDefaultDescription
eyebrowstring
titlestring
textstring
codestring
autoplaybooleanShowcase mode: tears and restocks by itself until touched.
onTear(code: string) => void

Methods on the ref

Use it in React

import TearCoupon from './TearCoupon';

<TearCoupon />

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

More in Paper

Good for: Micro-interactions.