# Task Cards

Task Cards 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

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.

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

## Install

```bash
npx shadcn@latest add @aicanvas/task-cards
```

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/task-cards.tsx` (under `src/` if your project has one). With the usual `@/` alias:

```tsx
import TaskCards from '@/components/aicanvas/task-cards'

<TaskCards />
```

It takes no props.

## About

Task Cards is a swipeable project task stack where each card carries a unique accent color, a status badge, and a due date. Drag a card left or right and it spins out of the deck and settles into the back, ready for the next one to come forward. Motion drives both the drag tracking and the springy snap-back, and the colors adapt cleanly between light and dark themes. It is a good fit for productivity dashboards, agile boards, and onboarding flows where each card is a discrete next-action.

Use cases: Dashboard, Productivity, Onboarding.

## Source

Install with the command above to get the source.

## Remix prompt

Only when the user wants Task Cards rebuilt from scratch instead of installed: its remix prompt is in the Remix panel at https://aicanvas.me/components/task-cards.

## Related

- [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.
- [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.
- [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.
- [Slide Deck](https://aicanvas.me/components/slide-deck.md): Swipeable card deck with four editorial slides. Navigate forward and back by drag or tap.
- [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.
