# Slide Deck

Slide Deck is a free, MIT-licensed standalone block from AI Canvas (https://aicanvas.me): it belongs to no design system and works in any React + Tailwind app. Index of every component and install setup: https://aicanvas.me/llms.txt

Swipeable card deck with four editorial slides. Navigate forward and back by drag or tap.

- Category: Cards & Modals
- Built with: Motion, Tailwind CSS
- License: MIT
- Page: https://aicanvas.me/components/slide-deck

## Install

```bash
npx shadcn@latest add @aicanvas/slide-deck
```

Needs a free AI Canvas account. Signed out, the command exits 0 but writes a placeholder (an `AccountRequired` notice); check for it before reporting success. Token setup: the Install section of https://aicanvas.me/llms.txt.

AI agents can also get its install command from the read-only AI Canvas MCP server (`npx -y @aicanvas/mcp`) and run it. Setup: https://aicanvas.me/mcp

Peer dependencies:

```bash
npm install framer-motion
```

## Use it

It installs to `components/aicanvas/slide-deck.tsx` (under `src/` if your project has one). With the usual `@/` alias:

```tsx
import SlideDeck from '@/components/aicanvas/slide-deck'

<SlideDeck />
```

It takes no props.

## About

Slide Deck is a four-slide editorial card stack you navigate by drag or by tapping the side arrows. Each slide springs into place with a Motion transition that hands focus to the new card while easing the previous one back. The cards themselves take rich content (image, headline, subhead, footer), so the same component works for an image gallery, a long-form editorial preview, a portfolio carousel, or a multi-step product story.

Use cases: Image gallery, Editorial, Portfolio.

## Source

Install with the command above to get the source.

## Remix prompt

Only when the user wants Slide Deck rebuilt from scratch instead of installed: its remix prompt is in the Remix panel at https://aicanvas.me/components/slide-deck.

## Related

- [Travel Deck](https://aicanvas.me/components/traveldeck.md): A swipeable deck of destination cards. Drag the front card down to fling it off-screen and reveal the next. Each card reveals an animated hotels counter as it comes forward.
- [Product Card Deck](https://aicanvas.me/components/product-card-deck.md): A draggable card deck you flick through one card at a time. The top card leans toward your drag, then spins away with momentum to reveal the next, and the deck loops endlessly. Every card pairs a picture with a title and a pill action button with hover and press states.
- [AI Job Cards](https://aicanvas.me/components/ai-job-cards.md): Three AI job card stacks with swipe-to-cycle. Brand logos, bookmark toggle, springs.
- [Task Cards](https://aicanvas.me/components/task-cards.md): A swipeable project task card stack where each card has a unique accent colour, status badge, and due date. Drag left or right to cycle through tasks. The dismissed card springs back to the bottom of the deck.
- [Meet the Crew](https://aicanvas.me/components/meet-the-crew.md): A swipeable portrait card stack perfect for introducing a team, showcasing crew members, or picking an avatar. Four stacked cards fan out with soft rotations: drag to browse, tap to choose. Drop in your own photos and names for an About Us section, a character selector, or an onboarding profile picker.
