NexusUI

Draggable Card Stack

Galleries

About

A shuffled deck of portrait cards you can drag or fling to send the top card to the back, with keyboard shortcuts, hover overlay captions, image/video support, and auto-play.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Draggable Card Stack to your project and fits it to your theme.

Code

How Draggable Card Stack is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { DraggableCardStack } from "@/components/ui/draggable-card-stack";

export default function DraggableCardStackDemo() {
  return (
    <div className="w-full h-screen">
      <DraggableCardStack />
    </div>
  );
}

Dependencies

More by NexusUI

View all
  • Circular Carousel

    Circular Carousel

    1.4K
  • Images Badge

    Images Badge

    1K
  • Chat Messages

    Chat Messages

    380
  • Aquarium Prompt

    Aquarium Prompt

    223
  • Infinite Moving Cards

    Infinite Moving Cards

    201
  • Cinematic Logo Cloud

    Cinematic Logo Cloud

    187
  • Shooting Stars Grid

    Shooting Stars Grid

    163
  • Pixel Atlas

    Pixel Atlas

    133

More in Galleries

View all
  • Gallery Component

    Gallery Component

    48
  • Photo Deck

    Photo Deck

    80
  • Scattered About

    Scattered About

    80
  • Product Hover Showcase

    Product Hover Showcase

    121
  • Morph Gallery

    Morph Gallery

    4
  • Image Gallery

    Image Gallery

    97
  • Editorial Collage Hero

    Editorial Collage Hero

    530
  • About 3

    About 3

    459