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.
React + Tailwind, shadcn-compatible: press “Copy for AI” and your Cursor or Claude Code agent installs it with the shadcn CLI.
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.club/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…
How to use
<Calendar019
year={2026}
month={4}
basePrice={4200}
nights={2}
currency="$"
/>A sample call. The agent installs the component itself from the registry via the “Copy for AI” link.
Settings
- Base price
basePrice· default: 4200- Nights
nights· default: 2- Currency
currency· default: $- Label language
locale· default: ru-RU- Accent
accent· default: theme colour- Surface
background· default: theme colour
More in Calendar
FAQ
- How do I add Price Calendar with Cursor or Claude Code?
- Press “Copy for AI” on this page and paste it into your agent's chat. The instruction contains the shadcn CLI install command, the dependencies and what to keep, so the agent installs this exact component instead of recreating a lookalike.
- What does Price Calendar depend on?
- No npm packages beyond React and Tailwind CSS.
- What can I change in Price Calendar?
- Adapt: 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. Keep as installed: the local --vibeui-calendar-019-* palette — with someone else's theme tokens the block will not match the preview; the deterministic price calculation: a random number would split server and client render and break hydration; the price inside the cell rather than after selection: "when is it cheaper" is asked before the click.
- Is Price Calendar free?
- Yes. The preview is open without an account; with a free account you can copy up to 20 components a month.
For developers
npx shadcn@latest add https://vibeui.club/r/pro/calendar-019.jsonThis command needs a signed link: sign in and open “Component source” below — it issues a working link valid for 30 minutes. All install options
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…