Component packs › Pulltab › Pull-tab Reveal
Pull the paper tab out of the card and the slide behind the die-cut window moves across to show the code, clicking into its stop or springing back.
Pull-tab Reveal is a reveal from Pulltab, a component pack with 6 paper mechanisms: Reveals, pickers and tabs built like pop-up book mechanisms: pull, lift, turn and unfold. Price: $2 for the whole pack.
Built with: slide behind a die-cut window, lever ratio and detent, slider role for keyboards.
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 |
|---|---|---|---|
front | string | Picture before pulling (HTML). | |
back | string | Picture after pulling (HTML). | |
title | string | Text printed on the card. | |
note | string | ||
onReveal | (open: boolean) => void | ||
dark | boolean | ||
autoplay | number | false | Showcase mode: pulls and pushes back every N ms. |
readonly open: booleansetOpen(v: boolean): voiddestroy(): voidimport PullTab from './PullTab';
<PullTab />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Skeuomorphic UI.