terra vidhal

Trip Itinerary Planner

Component

About

A multi-day trip itinerary planner with keyboard day tabs, a timeline of timed activities, category and cost editing, overlap detection, one-click reordering, undoable removal and a live trip budget breakdown.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Trip Itinerary Planner to your project and fits it to your theme.

Code

How Trip Itinerary Planner is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

/**
 * PrequelUI Animate — MIT — https://prequeluianimate.terravidhal.me
 */

import {
  TripItineraryPlanner,
  type TripActivity,
  type TripDay,
} from "@/components/ui/trip-itinerary-planner";

const DAYS: TripDay[] = [
  { id: 1, label: "Day 1", date: "Fri 12" },
  { id: 2, label: "Day 2", date: "Sat 13" },
  { id: 3, label: "Day 3", date: "Sun 14" },
];

const ACTIVITIES: TripActivity[] = [
  { id: "a1", day: 1, time: "09:00", title: "Arrive and drop the bags", category: "transport", duration: 30, cost: 0 },
  { id: "a2", day: 1, time: "10:30", title: "Old market walk", category: "sightseeing", duration: 90, cost: 15 },
  { id: "a3", day: 1, time: "13:00", title: "Lunch on the pier", category: "food", duration: 60, cost: 42 },
  { id: "a4", day: 1, time: "15:00", title: "Harbour boat loop", category: "activity", duration: 120, cost: 60 },
  { id: "a5", day: 1, time: "19:30", title: "Sunset dinner", category: "food", duration: 90, cost: 85 },
  { id: "b1", day: 2, time: "08:30", title: "Breakfast at the guesthouse", category: "food", duration: 45, cost: 24 },
  { id: "b2", day: 2, time: "10:00", title: "Museum of tides", category: "sightseeing", duration: 120, cost: 28 },
  { id: "b3", day: 2, time: "13:00", title: "Street food crawl", category: "food", duration: 90, cost: 38 },
  { id: "b4", day: 2, time: "14:00", title: "Pottery workshop", category: "activity", duration: 120, cost: 55 },
  { id: "b5", day: 2, time: "18:30", title: "Night market", category: "sightseeing", duration: 90, cost: 20 },
  { id: "c1", day: 3, time: "09:00", title: "Coastal trail", category: "activity", duration: 180, cost: 0 },
  { id: "c2", day: 3, time: "13:30", title: "Seafood lunch", category: "food", duration: 75, cost: 48 },
  { id: "c3", day: 3, time: "16:00", title: "Train home", category: "transport", duration: 120, cost: 36 },
];

export default function TripItineraryPlannerDemo() {
  return (
    <main className="flex min-h-screen w-full items-center justify-center bg-gradient-to-b from-muted/40 via-background to-background px-4 py-8 sm:px-6">
      <TripItineraryPlanner
        destination="Harbour district"
        days={DAYS}
        activities={ACTIVITIES}
        travelers={2}
        budget={600}
        title="Long weekend by the water"
        description="A relaxed three-day plan with room to wander. Keep the budget in sight and avoid double-booking the afternoon."
      />
    </main>
  );
}

Dependencies

More by terra vidhal

View all
  • Project Timeline

    Project Timeline

    30
  • Kanban Board

    Kanban Board

    20
  • Gravity Stars Background

    Gravity Stars Background

    20
  • Booking Calendar

    Booking Calendar

    18
  • Notification Center

    Notification Center

    16
  • Audio Waveform

    Audio Waveform

    16
  • Kpi Counter

    Kpi Counter

    16
  • Topographic Lines

    Topographic Lines

    16

Explore more

Part of PrequelUI Animate — browse the full library on 21st.dev.