Calendar
Price Calendar
A booking calendar with the nightly price inside every cell: the cheapest days are outlined, sold-out ones struck through, and the total sits at the bottom.
What you can change
- the month and the year through month and year
- the base price through basePrice and the stay length through nights
- the currency sign through currency and the sold-out days through soldOut
A link for your AI agent: preview, code and instructions.
Preview
Use it with AI
- 1. Copy the link.
- 2. Write to your agent in your own words and drop the link into the sentence.
- 3. The agent opens the link and installs the component from the registry.
put this on the home page as the hero:
https://vibeui.ru/c/calendar-019?lang=en&theme=dark
Not sure where to paste it? Step-by-step guide
Show the full instructions
What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.
Loading…
For developers
The install command lives in the “Component source” block below — a signed link that stays valid for 24 hours.
Technical notes
A client component: useState holds the selected check-in day. The price is computed by a deterministic function of the day of the month and the weekday rather than at random — randomness would split the server and the client render. The price stands in the cell rather than opening after a selection: a booking calendar answers the question "when is it cheaper", and the cell is made taller than usual for that. The month's minimum price is computed over the available days and marked with an outline and the label colour, not by colour alone. Sold-out days are switched off with the disabled attribute and struck through, but stay in the grid: a missing day reads as a loading failure. The footer shows the total for the chosen number of nights — multiplying in one's head is unnecessary here.
Tags
- calendar
- booking
- price
- availability
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…