Component packs › Fastener › Unzip Card
Pull the zip and the fabric parts behind the slider in a widening mouth, shadow falling on the card, until the flaps fold right back.
Unzip Card is a reveal from Fastener, a component pack with 6 fastener controls: Controls that fasten like clothing: zips that mesh, studs that snap, hook-and-loop that tears, buckles that click. Price: $2 for the whole pack.
Built with: fabric flaps follow the zip, drag or press the pull, zip() closes it.
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 |
|---|---|---|---|
title | string | Content under the fabric. | |
text | string | ||
code | string | A short code shown large (optional). | |
pullLabel | string | "Unzip to reveal" | Accessible name of the pull. Default "Unzip to reveal". |
onOpen | () => void |
readonly open: booleanunzip(): voidzip(): voiddestroy(): voidimport UnzipCard from './UnzipCard';
<UnzipCard />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Buttons.