Skip to main content
Clever Ops

Booking Window Bar

A check-in, check-out and guests summary bar with hairline seams and a serif reserve action, display-only fields from preformatted props, onSearch delegated, zero date-picker weight.

Preview & code

Loading Booking Window Bar preview

Installation

pnpm dlx shadcn@latest add @cleverui/booking-window-bar

Requires the @cleverui registry in your components.json, a one-off, two-line setup.

Usage

tsx
import { BookingWindowBar } from '@/components/ui/booking-window-bar'
Exampletsx
import { BookingWindowBar } from '@/components/ui/booking-window-bar'

export default function BookingWindowBarDemo() {
  return (
    <div className="mx-auto w-full max-w-4xl px-4 py-8 sm:px-6 sm:py-12">
      <BookingWindowBar
        checkIn="Fri 12 Sep"
        checkOut="Mon 15 Sep"
        nights="3 nights"
        guests="2 adults · 1 child"
        ctaLabel="Reserve your stay"
        href="#reserve"
      />
    </div>
  )
}

API reference

BookingWindowBar accepts the following props.

PropTypeDefaultDescription
checkIn*stringPREFORMATTED display date like 'Fri 12 Sep', never parsed
checkOut*stringPREFORMATTED display date like 'Mon 15 Sep'
guests*stringpreformatted summary like '2 adults · 1 child'
nightsstringoptional quiet figure between the date cells, e.g. '3 nights'
labels{ checkIn?: string checkOut?: string guests?: string }field micro-labels; defaults 'Check-in' / 'Check-out' / 'Guests'
ctaLabelstring'Reserve your stay'
hrefstringrenders the CTA as an anchor when set
onSearch() => voidinvoked on the reserve action when href is absent

…plus everything from Omit< React.HTMLAttributes<HTMLElement>, 'onDrag' | 'onDragStart' | 'onDragEnd' | 'onAnimationStart' >: className, event handlers, aria attributes and the rest pass straight through.

Frequently asked questions

How do I install the Booking Window Bar component?

Register the @cleverui registry in your components.json ("@cleverui": "https://cleverops.com.au/r/{name}.json"), then run `npx shadcn@latest add @cleverui/booking-window-bar`. The shadcn CLI copies the source into your project, you own the code from that point. You can also copy the source directly from this page.

What dependencies does Booking Window Bar require?

Booking Window Bar uses motion and lucide-react on top of React and Tailwind CSS. You don't need to install them manually, the shadcn CLI resolves and installs npm dependencies automatically when you add the component.

Can I theme Booking Window Bar to match my brand?

Yes. The component is styled entirely with Tailwind utilities over standard design tokens (primary, background, muted, border), so it inherits your existing shadcn/ui theme automatically. Change your CSS variables and the component follows, no source edits needed for palette, radius, or fonts.

Want this built for you?

CleverUI is built by the Clever Ops web team. If you'd rather ship a hand-coded, fast, custom website than assemble one, we build them for Australian businesses every week.

Explore web development services