Hotel Room Booking

Find a room

Reserve your stay

Pick a room that fits your party — we'll hold the best rate until checkout.

The Grand Azure Resort

4.9
3 nights

Check-in

September 24, 2026

Check-out

September 27, 2026

Guests

2

Select a room to continue

About this block

Hotel Room BookingPRO

Hotel room selection with room type cards showing images, amenity icons, guest capacity, price per night, check-in/check-out date picker, guest counter, and total price summary.

Booking7: Hotel Room Booking

A hotel room reservation card: a header shows the property name, star rating, night count, check-in/check-out dates, and a plus/minus guest counter, above a divided list of room-type rows each rendering a cover image, bed type, size, capacity, amenity chips, and per-night price, with a sticky footer that summarizes the selected room's total price and a "Reserve Room" button.

Upgrade to Pro

Pro blocks install through the shadcn CLI with your license key and ship their full source. Docs and live previews stay open to everyone, so you can read every block's details first.

Upgrade Now

Installation

Swap YOUR_EMAIL and YOUR_KEY for the email and license key on your account. Find your license key on your account page.

Radix flavor

bash
npx shadcn add "https://ui.beste.co/r/booking7?email=YOUR_EMAIL&license_key=YOUR_KEY"

Base UI flavor

bash
npx shadcn add "https://ui.beste.co/r-base/booking7?email=YOUR_EMAIL&license_key=YOUR_KEY"

This installs the block to components/beste/block/booking7.tsx, plus the badge and button shadcn/ui primitives it uses for the eyebrow, night/popular badges, and the reserve button.

Quick start

The installed file exports booking7Demo alongside the block: the exact props behind the preview above. Spread it to get a working room booking card in one line.

tsx
import { Booking7, booking7Demo } from "@/components/beste/block/booking7";

export default function Page() {
  return <Booking7 {...booking7Demo} />;
}

Then replace the demo with your own props. Written out, a trimmed setup looks like this:

tsx
import { Bath, Wifi } from "lucide-react";
import { Booking7 } from "@/components/beste/block/booking7";

export default function Page() {
  return (
    <Booking7
      badge={{ label: "Find a room", variant: "secondary" }}
      heading="Reserve your <strong>stay</strong>"
      hotelName="The Grand Azure Resort"
      rating={4.9}
      checkIn="April 18, 2026"
      checkOut="April 21, 2026"
      nights={3}
      currency="$"
      rooms={[
        {
          name: "Deluxe Suite",
          image: "/rooms/deluxe.jpg",
          price: 249,
          capacity: 3,
          bedType: "King Bed",
          size: "45 m²",
          amenities: [
            { icon: Wifi, label: "Free WiFi" },
            { icon: Bath, label: "Jacuzzi" },
          ],
          popular: true,
        },
      ]}
      labels={{ perNightLabel: "/ night", reserveButton: "Reserve Room" }}
    />
  );
}

Props

PropTypeDefaultDescription
badge{ label: string; variant?: "default" | "secondary" | "outline" }Section eyebrow badge above the heading
headingstringSection heading, supports inline <strong>
descriptionstringMuted paragraph under the heading
hotelNamestringProperty name in the card header
ratingnumberStar rating shown next to the hotel name
checkInstringCheck-in date, displayed as-is
checkOutstringCheck-out date, displayed as-is
nightsnumber1Night count; multiplies room price for the total
currencystring"$"Currency symbol prefixed to every price
roomsRoomType[][]Selectable room rows
labelsBooking7Labels{}All display strings for the header, rows, and footer
classNamestringExtra classes for the outer <section>
ts
type RoomAmenity = {
  icon: LucideIcon;
  label: string;
};

type RoomType = {
  name: string;
  image: string;
  price: number;
  capacity: number;
  bedType: string;
  size: string;
  amenities: RoomAmenity[];
  popular?: boolean;
};

type Booking7Labels = {
  checkInLabel?: string;
  checkOutLabel?: string;
  guestsLabel?: string;
  nightSingular?: string;
  nightPlural?: string;
  popularBadge?: string;
  capacityPrefix?: string;
  capacitySuffix?: string;
  tooSmallLabel?: string;
  perNightLabel?: string;
  noSelection?: string;
  reserveButton?: string;
};

Behavior notes

  • Selection is tracked by matching room.name as a string key in internal useState, so two rooms sharing a name would both register as selected, and the selection is never lifted out or exposed via a callback.
  • The guest counter is its own useState seeded at 2 and clamped to the range 1 to 6; it is purely internal, has no onChange, and the guestsLabel value never scales the price.
  • Each room row is disabled when room.capacity < guests, which dims it to opacity-50, sets cursor-not-allowed, hides its selection radio, and appends the tooSmallLabel in rose text next to the capacity line.
  • heading renders through dangerouslySetInnerHTML, and only inline <strong> is styled (bold, primary color) by the heading's descendant selectors.
  • The footer total is selected.price * nights; with no selection it shows the noSelection message and the "Reserve Room" button stays disabled.
  • Clicking an enabled "Reserve Room" only calls console.log("Reservation:", ...) with the hotel, room, dates, nights, guests, total, and currency, so wiring an actual checkout is left to the integrator.
  • The badge/heading/description header block is only rendered when at least one of those three props is set; the whole card sits inside a max-w-lg column and the room list itself has no scroll cap, so it grows with the number of rooms.
  • Room images are plain <img> elements with object-cover, and the nightSingular vs nightPlural label is chosen by nights === 1 for the header badge (the footer summary always uses nightPlural).

More Booking blocks

View all Booking
PRO

booking10

Meeting Room Booking

Coworking meeting room reservation with room cards showing capacity, equipment icons, hourly pricing, time range selector, attendee count, and total cost. Office and coworking space booking flow.

PRO

booking9

Event Ticket Booking

Event ticket selection with event banner, date/venue info, ticket tier cards (General/VIP/Backstage) with perks list, quantity selector, and order total. Concert and conference ticket flow.

PRO

booking6

Restaurant Reservation

Restaurant table reservation with guest count selector, date/time picker, seating preference (indoor/outdoor/bar), special requests textarea, and booking summary. Fine dining reservation flow.

PRO

booking2

Reservation Summary

Booking confirmation card with service details, date/time, provider info with avatar, price breakdown with subtotal/tax/discount/total, promo code input, cancellation policy, and confirm CTA.

PRO

booking8

Flight Booking

Flight search results with airline logos, departure/arrival times, duration, stops, class selector (economy/business/first), baggage info, and price comparison. Airline ticket booking flow.

FREE

booking5

Provider Picker

Staff/provider selection cards with avatar, name, specialty, star rating, review count, availability badge, experience years, and selected state. Grid layout with "Any Provider" option.