Skip to main content
Clever Ops

Reservation Bar

A booking strip that makes reserving feel effortless, party-size and time pills, one golden action, and a phone fallback. Designed to sit under a restaurant hero.

Preview & code

Loading Reservation Bar preview

Installation

pnpm dlx shadcn@latest add @cleverui/restaurant-reservation-cta

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

Usage

tsx
import { RestaurantReservationCta } from '@/components/blocks/restaurant-reservation-cta'
Exampletsx
import { RestaurantReservationCta } from '@/components/blocks/restaurant-reservation-cta'

export default function RestaurantReservationCtaDemo() {
  return (
    <RestaurantReservationCta
      heading="Book a table"
      partySizes={[2, 4, 6]}
      times={[
        '5:00 PM',
        '5:30 PM',
        '6:00 PM',
        '6:30 PM',
        '7:00 PM',
        '7:30 PM',
        '8:00 PM',
        '8:30 PM',
        '9:00 PM',
      ]}
      cta={{ label: 'Reserve', href: '#reserve' }}
      phone="(212) 555-0148"
      note="Walk-ins welcome before 6pm · cancellations free until 3pm"
    />
  )
}

API reference

RestaurantReservationCta accepts the following props.

PropTypeDefaultDescription
headingstring'Book a table'
partySizesnumber[][2, 4, 6]quick party-size pills; an 8+ pill is appended automatically
times*string[]available time slots shown as pills
cta*{ label: string; href: string }
phonestringfallback phone number rendered with icon
notestringmono micro-note (e.g. "Walk-ins welcome before 6pm")

…plus everything from React.HTMLAttributes<HTMLElement>: className, event handlers, aria attributes and the rest pass straight through.

Frequently asked questions

How do I install the Reservation 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/restaurant-reservation-cta`. 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 Reservation Bar require?

Reservation 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 Reservation 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