Tear-Stub Boarding Pass
A frosted-glass boarding pass with a perforated stub. Drag the stub away and it resists, tears free with a ragged edge and tumbles out of frame while a "Boarded" stamp thumps onto the pass. Lays out vertically on narrow screens.
Try it: Drag the stub away from the perforation, or press "Tear stub".
Brings its own background. Paints soft colour blobs behind the frosted glass so the blur reads: blush (light) / near-black (dark) via dark: variants. Restyle the frame with className.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/tear-stub-boarding-pass.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/tear-stub-boarding-pass. You can also copy the source into components/ui/tear-stub-boarding-pass.tsx (view on GitHub).
Usage
import { TearStubBoardingPass } from '@/components/ui/tear-stub-boarding-pass'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
pass | Partial<BoardingPassData> | DEFAULT_BOARDING_PASS | { carrier, cabin, flight, from, to, duration, passenger, date, gate, seat, boarding, group } — merged over the defaults. |
accent | string | '#be123c' | Route plane, logo and the Boarded stamp. |
torn / defaultTorn / onTornChange | boolean | false | Controlled / uncontrolled torn state. |
Dependencies
motionlucide-react
Related Widgets components
- Seat Scale Pricing
One pricing card that morphs through every plan as you drag the team size: avatars pop in seat by seat, the price rolls on odometer reels, the tier badge and accent cross-fade, unlocked features…
- Paper Fold Accordion
FAQ rows that open like a folded letter: two creased paper leaves swing open in CSS 3D (the top from its hinge, the bottom a beat later from the crease), shadows lift off the paper as it flattens…
- Polar Bloom Chart
A Nightingale rose that blooms: petals unfurl from the bud one after another, re-grow on springs when you switch datasets, and the hovered or arrow-key focused petal lifts out with a coloured glow…
- Swing Price Tag
A luxury swing tag hanging from a brass rail on a waxed cord. Brush past it and it swings like a real, lightly damped pendulum that settles and sleeps; tap it and it twirls over to the back for…
- Glow Leaderboard List
Glass pill rows that genuinely compete: scores tick up live, rows re-rank with layout springs, amounts roll and the glowing leader highlight glides to the new #1.
- Signal Beam Diagram
An integration map where light travels: sources fire gradient pulses along hairline S-curves into a glass hub, which relays them to destinations. Select a node to isolate its route and read what…