Travel DeckA swipeable deck of destination cards.

Cards & ModalsImage galleryPortfolioE-commerce
hotels 0

Maafushi

Maldives
hotels 0

Swiss Alps

Switzerland
hotels 0

Bali

Indonesia

swipe down to shuffle

Add to your project

One command adds this component to your project.

1

Run the following command. New project? Run npx shadcn@latest init first to set up Tailwind and path aliases.

npx shadcn@latest add @aicanvas/traveldeck
2

For dark mode, add the dark class to your <html> element:

Optional
<html class="dark">

Install with AI Canvas MCP

With AI Canvas MCP, your AI knows every component we ship. Ask for “a navigation component from AI Canvas” inside Claude Code, Codex, or Cursor and it can suggest you a few options, then install the one you like. Less typing, lower token cost, modern way to build.

Get MCP

About Travel Deck

Travel Deck is a swipeable stack of destination cards that you flick through with a downward drag on the front card. As the top card recedes it animates a hotel-count badge that counts up to its destination total, then settles into the back of the stack. Motion handles both the drag tracking and the spring-back of dismissed cards into the back of the deck. It is a strong choice for image galleries, travel marketing pages, portfolio sliders, and product showcases that benefit from a tactile, deck-of-cards interaction.

Built with

MotionTailwind CSS

More like this