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
ComponentsAI & agentsPrompt deck
Copy promptCopy prompt

Customize

How long each prompt stays in front, in ms

2200ms

JSX · copied with Copy prompt

<PromptDeck />

Prompt deckNew

A stack of prompt cards that swipes the front card away and lifts the next one into place, on a loop while it is on screen.

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/prompt-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 { BookOpen, Code, Globe, Mail, Search } from "lucide-react";
4import { PromptDeck } from "@/components/nextui/prompt-deck";
5
6export function Example() {
7 return (
8 <PromptDeck
9 interval={3000}
10 tools={[Search, Globe, Code]}
11 prompts={[
12 { icon: Mail, title: "draft replies", prompt: "reply to the three oldest emails in my inbox", sources: [Mail, Globe, Code] },
13 { icon: BookOpen, title: "summarise docs", prompt: "what changed in the API docs this week?", sources: [BookOpen, Search, Globe] },
14 { icon: Search, title: "research", prompt: "find five competitors and compare pricing", sources: [Search, Globe, Code] },
15 ]}
16 onActiveChange={(i) => console.log("front card", i)}
17 />
18 );
19}

API reference

Edit props live in the preview above, or see all 5 props
PropTypeDefaultDescription
promptsPromptDeckItem[]5 design promptsCards in the deck: icon, title, prompt and up to three source icons; titles must be unique
toolsLucideIcon[]7 lucide iconsSmall icons along the bottom of each card
intervalnumber2200How long each prompt stays in front, in ms
onActiveChange(index: number) => void–Called with the index of the prompt that moved to the front
classNamestring–Extra class on the root

Related

All components

Chat inputNew

Task checklistNew

ReasoningNew

Sign in to see the code

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

Sign in