# Deck Standard 1 - Swipe card deck

> Swipeable card stack with empty state after the last card.

A shadcn/ui block from the [@shadcnblocks](https://shadcnblocks.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/shadcnblocks/deck-deck-standard-1).

- Page, with a live preview: https://shadcn.exchange/r/shadcnblocks/deck-deck-standard-1
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/shadcnblocks/deck-deck-standard-1-light-3cc2ae781d919519.png
- Registry item: https://shadcnblocks.com/r/deck-deck-standard-1.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://shadcnblocks.com/r/deck-deck-standard-1.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `https://www.kibo-ui.com/r/deck.json`

## Files

### `example/deck/deck-standard-1.tsx`

```tsx
"use client";

import {
  Deck,
  DeckCards,
  DeckEmpty,
  DeckItem,
} from "@/components/kibo-ui/deck";

export const title = "Swipe card deck";

const cards = [
  { title: "Nora Blake", body: "Product designer exploring spatial UI." },
  { title: "Sam Ortiz", body: "Engineer shipping realtime collaboration." },
  { title: "Ava Chen", body: "Founder building calm productivity tools." },
];

const Example = () => (
  <div className="flex w-full flex-col items-center gap-3">
    <p className="text-sm text-muted-foreground">Drag left or right</p>
    <Deck className="relative h-80 w-72 max-w-full">
      <DeckCards>
        {cards.map((card) => (
          <DeckItem
            key={card.title}
            className="flex flex-col justify-end gap-2 bg-card p-5"
          >
            <p className="text-lg font-semibold">{card.title}</p>
            <p className="text-sm text-muted-foreground">{card.body}</p>
          </DeckItem>
        ))}
      </DeckCards>
      <DeckEmpty className="text-sm text-muted-foreground">
        No more cards
      </DeckEmpty>
    </Deck>
  </div>
);

export default Example;
```
