nextui.dev
Home
Docs
Saved
Pricing
Components37
  • Forms & inputs7
  • Cards13
  • Buttons, badges & avatars8
  • Feedback & display6
  • Effects3
Agents17
  • Chat inputNew
  • Task checklistNew
  • ReasoningNew
  • Tool callNew
  • Tool approvalNew
  • SourcesNew
  • Agent timelineNew
  • Artifact panelNew
  • Streaming messageNew
  • Conversation shellNew
  • Voice agentNew
  • Voice orbNew
  • Thinking ring
  • Thinking waveNew
  • Thinking sparkle
  • Thinking bot
  • Prompt deckNew
Blocks20
  • Agent chatNew
  • Pill heroNew
  • Grid hero
  • Moodboard generatorNew
  • Waitlist heroNew
  • Intro bannerNew
  • Creative home heroNew
  • Chat heroNew
  • App shelfNew
  • Usage card
  • Design resultsNew
  • Pricing tiers
  • Dashboard home
  • The shiftNew
  • Launch perksNew
  • Testimonials
  • Quote
  • Team
  • Leads tableNew
  • Sign in
Pages10
  • ASCII workspace$49
  • CRM overviewNew
  • Marketing dashboardNew
  • Developer portfolio$49
  • Particle landing$49
  • Particle story$49
  • Statement converter$49
  • AI photo studio$49
  • Group card launch$49
  • Month-end storyNew
Themes9
  • Default
  • Ember
  • Ocean
  • Forest
  • Grape
  • Rose
  • Amber
  • Clay
  • Brutal
Upgrade
nextui.dev

nextui components, blocks and themes you install with one command.

Product

  • Components
  • Blocks
  • Themes
  • Pricing

Resources

  • Docs
  • Roadmap
  • GitHub

Legal

  • License
  • Privacy
  • Terms
  • Refunds

nextUI

[ 200 OK ] · nextUI

© 2026 NEXTUI • All rights reserved.

Upgrade
ComponentsCardsSwipe deck
Copy promptCopy prompt

Customize

How long each card stays in front, in ms; pauses on hover and while dragging

2800ms

Label next to the arrow in each card's bottom right corner

JSX · copied with Copy prompt

<SwipeDeck />

Swipe deckNew

A deck of soft social carousel posts with an inner panel, a visual, a page index and a like, comment, share and bookmark row: the front card swings out to the left as the next one steps up, by timer, swipe or arrows.

Installation

Set your access key from API keys as NEXTUI_TOKEN in .env.local and add the @nextui namespace below to components.json once. Then every item installs by name. Each install counts as a copy on a free account.

$pnpm dlx shadcn@latest add @nextui/swipe-deck
1{
2 "registries": {
3 "@nextui": {
4 "url": "https://nextui.dev/r/{name}.json",
5 "headers": { "Authorization": "Bearer ${NEXTUI_TOKEN}" }
6 }
7 }
8}

Usage

1"use client";
2
3import { SwipeDeck } from "@/components/nextui/swipe-deck";
4
5export function Example() {
6 return (
7 <SwipeDeck
8 interval={2800}
9 hint="Swipe"
10 items={[
11 { title: "Designing with depth", subtitle: "Five quiet ways to add volume without adding clutter.", visual: "sphere" },
12 { title: "Palettes for autumn", subtitle: "Warm neutrals that pair with a single bold accent.", visual: "swatches" },
13 { title: "Tools on our desk", pill: "12 picks inside", visual: "window" },
14 { title: "Your own visual", subtitle: "Any node works in the middle.", visual: <img src="/cover.png" alt="" className="h-28 rounded-xl" /> },
15 ]}
16 />
17 );
18}

API reference

Edit props live in the preview above, or see all 5 props
PropTypeDefaultDescription
itemsSwipeDeckItem[]seven design tipsPosts in the deck, each with a title, an optional subtitle or pill, and a visual; titles must be unique
intervalnumber2800How long each card stays in front, in ms; pauses on hover and while dragging
hintstring"Swipe"Label next to the arrow in each card's bottom right corner
onActiveChange(index: number) => void–Called with the index of the card that moved to the front
classNamestring–Extra class on the root

Visuals

  • Built-in visuals: "sphere", "swatches", "type", "window", "spacing", "toggle" and "layers"
  • Pass any React node as visual to draw your own in the middle of the card

Motion

  • While the deck is on screen the front card tilts out to the left and tucks in as the first seen card, while the next one steps up from the right
  • Drag the front card left or right to swipe, or use the arrows and dots; going back swings the last seen card over the top
  • Like and bookmark toggle per card with a small pop
  • With reduced motion the cards switch without swinging and nothing loops

Related

All components

Contact stackNew

Service receiptNew

Revenue cardNew

Sign in to see the code

Preview it freely. A free account copies code and prompts a few times a day.

Sign in