Component packs › Pulltab › Pull-tab Reveal

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.

Pull-tab Reveal props

PropTypeDefaultDescription
frontstringPicture before pulling (HTML).
backstringPicture after pulling (HTML).
titlestringText printed on the card.
notestring
onReveal(open: boolean) => void
darkboolean
autoplaynumber | falseShowcase mode: pulls and pushes back every N ms.

Methods on the ref

Use it in React

import PullTab from './PullTab';

<PullTab />

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

More in Pulltab

Good for: Skeuomorphic UI.