shadcn.io is an independent project built on shadcn/ui
Installation
Overview
Show what a stay costs and where there is room with this parking product card for Vue with Ark UI. A framed plan draws 24 bays in three rows between an entrance and an exit. A native select sets the arrival from 08:00 to 18:00, a Toggle Group sets the stay (1, 2, 4, 8 hours or All day) and a second one picks the kind of bay: Standard, EV charging or Accessible. The plan shows the chosen kind: free bays are solid, taken ones are hatched, the other kinds stand back. The card writes "Leave by 16:00" and the price from a typed rate table, and says when the car park's 22:00 closing cuts a stay short. The one Shine Button holds the first free bay. Money is integer cents. Nothing is held or charged. For car parks, lockers, charging points and anything with numbered places.
FAQ
How do I change the bays and the prices?
Edit LAYOUT (one letter per bay), BUSY (the hours each bay is taken) and KINDS, whose cents list holds the price for 1, 2, 4 and 8 hours and the whole day. A bay is free when none of its BUSY hours overlap the stay.
What if the stay runs past closing?
The leave-by time stops at 22:00 and the card says so, so a long stay is never promised past closing. The price is still the one for the length chosen.
What stays local, and how do I wire it for real?
The choices and the hold are page state; nothing is held or charged. Replace the body of hold and release with calls to your parking service, and ask it which bay it gave you, since another driver may have taken the first one.
Which day is it?
A fixed one, Mon 12 Oct, counted from a fixed "today" (AS_OF), so the card looks the same on every load. In a real car park take the date from the picker you already have.
Related
- Coworking Product CardTravel, events and bookings

- Appointment Product CardTravel, events and bookings

- Car Rental Product CardOutdoor, sport and wheels

- Rental Product CardTravel, events and bookings

- Equipment Rental Product CardOutdoor, sport and wheels

- Concert Ticket Product CardTravel, events and bookings
