YYonda UI Docs

PriceCalendar

Month-grid calendar where each date cell shows the cheapest available price for that day. Booking.com property page pattern — encourages date flexibility by showing users that shifting their trip a few days could save real money. Sold-out dates are disabled with a strikethrough; the cheapest visible day gets a brand-primary highlight.

November 2026

Pick a date

Range mode (2-month layout)

Pass mode="range" to pick a check-in / check-out pair. The calendar shows 2 months side-by-side for easier range selection (Booking.com property-page pattern).

November 2026
December 2026

Pick a date range

Usage notes

  • — data is a plain object keyed by ISO date string ("2026-09-15"). Consumers pre-format the price label — currency + i18n stay out of the component.
  • — Days without an entry render blank (day number only). Days with available: false are disabled and show "Sold out".
  • — Days with tier: "deal" get a green price label — the universal OTA "good value" signal. Use deriveTiers(data) to auto-mark any day ≥10% below the median (Booking.com Genius rate threshold), or set tier explicitly per entry for business-rule-driven marking.
  • — Today's date gets a bold brand-primary marker + muted background pill so it's always locatable at a glance.
  • — fromDate / toDate constrain which months are reachable via the navigation chevrons.
  • — Composes the shipped Calendar primitive — inherits keyboard nav, month-caption controls, and react-day-picker's a11y for free.