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.3K
  • Images Badge

    Images Badge

    1K
  • Chat Messages

    Chat Messages

    366
  • Cinematic Logo Cloud

    Cinematic Logo Cloud

    175
  • Infinite Moving Cards

    Infinite Moving Cards

    173
  • Shooting Stars Grid

    Shooting Stars Grid

    160
  • Pixel Atlas

    Pixel Atlas

    133
  • Logo Clouds

    Logo Clouds

    119

More in Galleries

View all
  • Scattered About

    Scattered About

    14
  • Animated Gallery

    Animated Gallery

    1.5K
  • Photo Deck

    Photo Deck

    4
  • Gallery Component

    Gallery Component

    5
  • Editorial Collage Hero

    Editorial Collage Hero

    507
  • Elastic Gallery

    Elastic Gallery

    1.1K
  • Image Gallery

    Image Gallery

    130
  • Folded Card

    Folded Card

    42