Folder Fan Showcase

Social post cards wait inside a frosted-glass folder, peeking over the rim of a blurred front pocket. Hover or focus and they rise and fan out on staggered springs; pick one and it lifts clear of the pocket and is pulled forward, with a soft mirrored reflection on the floor.

Try it: Hover the folder to fan the cards; click one to pull it forward. Arrow keys cycle, Esc tucks it back.

Brings its own background. Paints its own blush (light) / wine-black (dark) backdrop with grain via dark: variants; the post cards keep their own colours in both themes. Retint everything with accent and restyle the frame with className.

Installation

Install with the shadcn CLI:

npx shadcn@latest add https://www.framekitui.live/r/folder-fan-showcase.json

Or, with the @framekit namespace registered: npx shadcn@latest add @framekit/folder-fan-showcase. You can also copy the source into components/ui/folder-fan-showcase.tsx (view on GitHub).

Usage

import { FolderFanShowcase } from '@/components/ui/folder-fan-showcase'

Props

Component props
PropTypeDefaultNotes
itemsFolderFanItem[]DEFAULT_FOLDER_FAN_ITEMS{ id, title, body?, kicker?, src?, alt?, accent? } — five generated post layouts rotate (cover, quote, stat, checklist, save); pass src for your own artwork. Use | in body for checklist lines.
accentstring'#c8143c'Signature colour (any CSS colour) for the folder, highlights and generated cards.
eyebrow / title / highlight / descriptionstring—Copy beside the folder; highlight paints part of the title with the accent.
folderLabel / folderMeta / tabLabelstring—Text printed on the glass pocket and the folder tab.
index / defaultIndex / onIndexChangenumber | nullnullControlled / uncontrolled pulled-forward card (null = none).
defaultOpenbooleanfalseStart fanned out instead of fanning on hover / focus.
reflectionbooleantrueMirrored floor reflection under the folder.
ctaLabel / onCtastring / () => void'Use this kit'Primary button; pass an empty string to hide.
titleAs'h1' | 'h2' | 'h3''h2'Heading level of the title.

Dependencies

  • motion
  • lucide-react
  • Origami Unfold Card

    A trail ticket that unfolds like a paper map: press the cover and two creased panels swing down in sequence on real CSS-3D hinges, catching light as they flatten, while the route draws itself and…

  • Swipe Carousel Post

    An Instagram-style multi-slide post card: drag or swipe the media and the track snaps on a spring, a segmented bar fills with slide progress, the dot pager shrinks toward the edges and a double-tap…

  • Lenticular Shift Card

    A postcard printed on a ridged lenticular sheet: tilting interlaces the scenes in fine vertical blinds that sweep across the print while a specular band rides the ridges.

  • Editorial Spread Card

    A magazine cover on real CSS 3D: hover and it lifts off its spine, click and it swings open on a hinge while the issue slides to centre, revealing a two-page spread with a pull quote, deck and…

  • Curved Tile Wall

    A gallery bent onto a sphere section in real CSS 3D: mixed-height frames drift, swing with drag, pop toward you on hover and open in a focused lightbox.

  • Video Lightbox Dialog

    A cinematic thumbnail with a clear-glass play button that grows into a focused player on a shared-layout spring while the page blurs back. Bring your own video, or use the generated preview with…

See all 27 Cards components