shadcn.io is an independent project built on shadcn/ui
Installation
Overview
Help people pick a departure instead of just a trip with this travel card for React with Ark UI. A hairline frame holds a drawn coast path and the walking days at the start, each stage with its distance and the total worked out from the rows. At the end four departures are native radio rows with a price a person and the places open, and the cheapest one carries a "Lowest price" tag found from the data. A Toggle Group sets 1 to 4 travellers, capped by the places open, and a description list gives the total, the $150 deposit each and the balance. One Shine Button holds the places. For tour operators, retreats, courses and trips with fixed departure dates.
FAQ
How do I change the departures and prices?
Edit the DEPARTURES array: each has an id, an ISO date, a label, a price for one person in cents and the places open. The lowest-price tag follows the data, and the deposit is DEPOSIT_CENTS for each person.
What if a departure has fewer places than travellers?
The travellers choice is clamped to the places open when you pick it, and the options above that number are disabled. The status line says how many places are open.
How is the distance worked out?
It is the sum of the km of each stage in STAGES, so changing a stage updates the total line. The first and last days are travel days with no walking.
What stays local, and how do I wire it for real?
The held places are page state; nothing is booked, charged or sent. Replace DEPARTURES with your availability and the body of hold with a call that takes the deposit.
Related
- Hotel Product CardTravel, events and bookings

- Flight Product CardTravel, events and bookings

- Event Sessions Product CardTravel, events and bookings

- Camping Gear Product CardOutdoor, sport and wheels

- Appointment Product CardTravel, events and bookings

- Concert Ticket Product CardTravel, events and bookings
