Component packs › Paper › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
eyebrow | string | ||
title | string | ||
text | string | ||
code | string | ||
autoplay | boolean | Showcase mode: tears and restocks by itself until touched. | |
onTear | (code: string) => void |
tear(): voidreset(): voiddestroy(): voidimport TearCoupon from './TearCoupon';
<TearCoupon />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Micro-interactions.