# Demo Booking Page

> A React book-a-demo page template with the agenda, host and logos beside a three step booking.

- Type: React template (Templates)
- Access: Pro (the source needs a Wingo UI Pro plan, see https://wingo-ui.com/pricing)
- Version: 1.1.0
- Install: `npx wingo-ui@latest add demo-booking-page`
- Docs: https://wingo-ui.com/templates/demo-booking-page

## Interaction

The left column says what the 30 minute call covers (an agenda with minutes per part), who hosts it (Ava Thompson), a customer quote and the wordmarks of teams that booked. The booking card on the right walks through three steps shown by a stepper (a compact Step 1 of 3 header on phones): pick a day in the calendar, which opens on the first day with an open time and says how many times it has, with a Book <first time> shortcut straight to the details (weekends, past days, days past the booking window and days with no open time in your zone are disabled), then a time from Morning, Afternoon and Evening groups. Both steps list times in your time zone, detected from the browser and changeable in a searchable select (a bottom sheet on phones); the list is worked out from the host's New York hours, so a Berlin visitor sees afternoon and evening times. Then name, work email (free mail domains are refused, checked when you leave the field), company size and optional notes with a counter. Continue checks each step, errors show in place and focus moves to the first problem or to the new step's heading; Back and the completed steps in the stepper go back without losing anything. On phones the Back / Continue bar stays pinned to the bottom of the screen. Confirm booking spins while onSubmit runs, then the card shows You're booked with the day, the time range and zone, the length, the host and a copyable meeting link, buttons that add the call to Google Calendar, Outlook or download an .ics file, and Reschedule, which goes back to the times with the details kept and confirms as New time confirmed. A FAQ follows. The heading, card and details rise in once on mount; reduced motion keeps them still.

## Installation

```bash
npx wingo-ui@latest add demo-booking-page
```

Pro item: run `npx wingo-ui@latest login` once with a Pro account. The CLI adds the files, their dependencies and a version record for updates.

With shadcn: `npx shadcn@latest add @wingo-ui/demo-booking-page` (needs the @wingo-ui registry with your API key in components.json)

Files:

- `components/templates/demo-booking-page.tsx`
- `components/templates/demo-booking-page-data.ts`

npm dependencies: `npm i motion lucide-react`

Wingo UI dependencies (installed automatically):

- [Marketing Section](https://wingo-ui.com/components/marketing-section) ([Markdown](https://wingo-ui.com/components/marketing-section.md))
- [Marketing Header](https://wingo-ui.com/components/marketing-header) ([Markdown](https://wingo-ui.com/components/marketing-header.md))
- [Marketing Footer](https://wingo-ui.com/components/marketing-footer) ([Markdown](https://wingo-ui.com/components/marketing-footer.md))
- [FAQ Section](https://wingo-ui.com/components/faq-section) ([Markdown](https://wingo-ui.com/components/faq-section.md))
- [Logo Cloud](https://wingo-ui.com/components/logo-cloud) ([Markdown](https://wingo-ui.com/components/logo-cloud.md))
- [Avatar](https://wingo-ui.com/components/avatar) ([Markdown](https://wingo-ui.com/components/avatar.md))
- [Button](https://wingo-ui.com/components/button) ([Markdown](https://wingo-ui.com/components/button.md))
- [Calendar](https://wingo-ui.com/components/calendar) ([Markdown](https://wingo-ui.com/components/calendar.md))
- [Copy Button](https://wingo-ui.com/components/copy-button) ([Markdown](https://wingo-ui.com/components/copy-button.md))
- [Field](https://wingo-ui.com/components/field) ([Markdown](https://wingo-ui.com/components/field.md))
- [Input](https://wingo-ui.com/components/input) ([Markdown](https://wingo-ui.com/components/input.md))
- [Select](https://wingo-ui.com/components/select) ([Markdown](https://wingo-ui.com/components/select.md))
- [Steps](https://wingo-ui.com/components/steps) ([Markdown](https://wingo-ui.com/components/steps.md))
- [Textarea](https://wingo-ui.com/components/textarea) ([Markdown](https://wingo-ui.com/components/textarea.md))
- [Navigation](https://wingo-ui.com/components/navigation) ([Markdown](https://wingo-ui.com/components/navigation.md))
- [Motion presets](https://wingo-ui.com/components/motion) ([Markdown](https://wingo-ui.com/components/motion.md))
- [Tones](https://wingo-ui.com/components/tones) ([Markdown](https://wingo-ui.com/components/tones.md))
- [UIProvider](https://wingo-ui.com/components/ui-config) ([Markdown](https://wingo-ui.com/components/ui-config.md))

## Usage

```tsx
// app/(marketing)/demo/page.tsx
"use client"

import Link from "next/link"
import { DemoBookingPage } from "@/components/templates/demo-booking-page"

export default function DemoRoute() {
  return (
    <DemoBookingPage
      linkComponent={Link}
      onSubmit={async (values) => {
        const response = await fetch("/api/demo-bookings", {
          method: "POST",
          headers: { "Content-Type": "application/json" },
          body: JSON.stringify({
            ...values,
            start: values.start.toISOString(),
            end: values.end.toISOString(),
          }),
        })
        if (!response.ok) throw new Error("Could not book")
      }}
    />
  )
}
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `design?` | `"classic" \| "minimal"` | `"classic"` | The whole page's look. classic: a glow, the booking card and host on raised cards, the agenda on a soft tile and the FAQ on a band; minimal: a transparent header, a soft wash instead of the glow, an outlined flat booking card, the agenda and host right on the page, a borderless FAQ without the band and a simple footer. headerProps and footerProps still win. |
| `background?` | `"plain" \| "soft" \| "glow" \| "aurora" \| "grid" \| "dots"` | `"glow"` | The main background: plain is the bare page color; the others tint the page and add a glow, an aurora, a grid or dots over the first screen. A design picks its own unless you set one. |
| `backgroundColor?` | `string` | `"oklch(0.62 0.14 275)"` | The tint and glow color of the main background. Without one, a non-neutral tone tints the page. |
| `bandBackground?` | `"muted" \| "tinted" \| "gradient" \| "dots"` | `"muted"` | The secondary background of the alternating bands. Cards, fields and tiles inside a band are lifted one step above it, so they never share its color. |
| `bandColor?` | `string` | `"oklch(0.62 0.14 275)"` | The tint of tinted and gradient bands; defaults to backgroundColor. |
| `agenda?` | `DemoBookingAgendaItem[]` | `"DEMO_BOOKING_AGENDA"` | { title, description?, minutes?, icon? }: what the call covers, in order. |
| `facts?` | `DemoBookingFact[]` | `"DEMO_BOOKING_FACTS"` | { label, icon? } short facts after the length and the video call (from meetingUrl): guests, live questions. |
| `host?` | `DemoBookingHost` | `"DEMO_BOOKING_HOST"` | { name, role, bio?, avatarSrc? }: who runs the call; initials without a portrait. |
| `hours?` | `DemoBookingHours` | `"DEMO_BOOKING_HOURS"` | { timeZone, days, start, end }: when the host takes calls, in the host's zone (weekdays 9 to 5 in New York). Some slots are already taken, picked from the time itself so they stay stable. |
| `timeZones?` | `DemoBookingTimeZone[]` | `"DEMO_BOOKING_TIME_ZONES"` | { value, label, keywords? } zones of the time zone select; the visitor's own zone is added when it is missing. |
| `companySizes?` | `DemoBookingSizeOption[]` | `"DEMO_BOOKING_COMPANY_SIZES"` | { value, label } options of the required company size select; an empty array hides it. |
| `quote?` | `DemoBookingQuote \| null` | `"DEMO_BOOKING_QUOTE"` | { quote, name, role }: one customer quote under the host. |
| `faq?` | `FaqItem[]` | `"DEMO_BOOKING_FAQ"` | Questions of the FAQ (FaqSection items). |
| `logos?` | `LogoCloudItem[]` | `"DEMO_BOOKING_LOGOS"` | Customer wordmarks in the left column. |
| `labels?` | `Partial<DemoBookingPageLabels>` | `"DEFAULT_DEMO_BOOKING_PAGE_LABELS"` | Every visible string, including the validation messages and the calendar event text. |
| `duration?` | `number` | `30` | The call length in minutes: the facts, the description, the end time and the calendar event. |
| `interval?` | `number` | `30` | Minutes between start times. |
| `daysAhead?` | `number` | `42` | How many days ahead can be booked; said in the date step. |
| `leadHours?` | `number` | `4` | Minimum notice: no slot starts sooner than this from now; said in the date step. |
| `defaultTimeZone?` | `string` | `""` | The visitor's time zone on load; "" uses the browser's (the host's zone until the page has loaded). |
| `hourCycle?` | `"auto" \| "12h" \| "24h"` | `"auto"` | 2:30 PM or 14:30; auto follows the locale. |
| `requireWorkEmail?` | `boolean` | `true` | Rejects free mail domains like gmail.com or outlook.com; the field and the note under the card say work email. |
| `meetingUrl?` | `string` | `"https://meet.acme.com/ava-thompson"` | The video call link: its host in the facts, the link on the confirmation and in the calendar event. |
| `privacyHref?` | `string` | `"/legal/privacy"` | The privacy policy link under the booking card. |
| `docsHref?` | `string` | `"/docs"` | The docs link in the FAQ description and on the confirmation. |
| `onSubmit?` | `(values: DemoBookingValues) => (void \| Promise<unknown>)` |  | Books { start, end, timeZone, name, email, companySize, notes, rescheduled }; a promise keeps the button loading, a rejection shows labels.failed. Without it the page waits 900 ms and confirms. |
| `onStepChange?` | `(step: "date" \| "time" \| "details") => void` |  | Runs when the booking moves to another step (analytics). |
| `tone?` | `"neutral" \| "brand" \| "success" \| "warning" \| "danger" \| "info"` | `"neutral"` | The selected day and time, the stepper and the glow behind the heading. |
| `ctaTone?` | `"neutral" \| "brand" \| "success" \| "warning" \| "danger" \| "info"` | `"neutral"` | Continue and Confirm booking; brand is the marketing orange. |
| `radius?` | `"none" \| "sm" \| "md" \| "lg" \| "full"` | `"md"` | Corners of the fields and the time slots. |
| `stepsVariant?` | `"circles" \| "bars"` | `"circles"` | The stepper above the steps: numbered circles or bars. |
| `showAgenda?` | `boolean` | `true` | What you'll see, with minutes per part. |
| `showHost?` | `boolean` | `true` | The card with the demo host's photo, name and role. |
| `showQuote?` | `boolean` | `true` | The customer quote. |
| `showLogos?` | `boolean` | `true` | The customer wordmarks. |
| `showFaq?` | `boolean` | `true` | The FAQ under the booking. |
| `header?` | `boolean` | `true` | The marketing header; off inside a site layout. |
| `footer?` | `boolean` | `true` | The marketing footer. |
| `headerProps?` | `Partial<MarketingHeaderProps>` |  | Passed to MarketingHeader. |
| `footerProps?` | `Partial<MarketingFooterProps>` |  | Passed to MarketingFooter. |
| `animateIn?` | `boolean` | `true` | The heading, booking card and details rise in once on mount; off in thumbnails and under reduced motion. |
| `locale?` | `string` | `"en-US"` | Intl locale for the calendar, the days and the times (Thursday, October 15 or Donnerstag, 15. Oktober). |
| `linkComponent?` | `(props: LinkComponentProps) => ReactNode` | `"<a>"` | The router link for the header, footer and inner links (next/link in an app). |
| `className?` | `string` |  | Classes for the root. |
| `classNames?` | `Partial<Record<DemoBookingPageSlot, string>>` |  | Classes for header, hero, intro, info, facts, agenda, host, quote, logos, booking, steps, calendar, slots, form, success, faq and footer. |

## Parts

### getDemoBookingSlots (function)

getDemoBookingSlots(day, { hours, timeZone, duration, interval, notBefore?, hideTaken? }): the open start times on a "YYYY-MM-DD" day of the visitor's zone, from the host's hours.

### DEMO_BOOKING_PAGE_SAMPLE (constant)

All the sample content: agenda, facts, host, hours, timeZones, companySizes, quote, faq and logos.

### DEMO_BOOKING_AGENDA (constant)

Planning, docs, automations, then insights and questions, 30 minutes in all.

### DEMO_BOOKING_FACTS (constant)

Up to 5 teammates, questions answered live.

### DEMO_BOOKING_HOST (constant)

Ava Thompson from customer success.

### DEMO_BOOKING_HOURS (constant)

Monday to Friday, 9 AM to 5 PM in New York.

### DEMO_BOOKING_TIME_ZONES (constant)

13 zones from Los Angeles to Sydney with search keywords.

### DEMO_BOOKING_COMPANY_SIZES (constant)

Five company size ranges.

### DEMO_BOOKING_QUOTE (constant)

A quote from Northwind's head of operations.

### DEMO_BOOKING_FAQ (constant)

Four questions people ask before they book.

### DEMO_BOOKING_LOGOS (constant)

Six customer wordmarks from LOGO_CLOUD_SAMPLE.

### DEFAULT_DEMO_BOOKING_PAGE_LABELS (constant)

The English strings.

### DEMO_BOOKING_PAGE_DESIGNS (constant)

The design names, classic first: ["classic", "minimal"].

### DemoBookingPageDesign (type)

"classic" | "minimal".

### DemoBookingPageProps (type)

Props of DemoBookingPage.

### DemoBookingValues (type)

{ start, end, timeZone, name, email, companySize, notes, rescheduled }: what onSubmit receives.

### DemoBookingHours (type)

The host's weekly hours in their time zone.

### DemoBookingAgendaItem (type)

One part of the call.

### DemoBookingStep (type)

"date" | "time" | "details": what onStepChange receives.

### DemoBookingHourCycle (type)

"auto" | "12h" | "24h".

### DemoBookingStepsVariant (type)

The booking progress style: "circles" (numbered dots) or "bars".

### DemoBookingPageLabels (type)

Every visible string; some are functions of the length, the step or the host.

### DemoBookingPageSlot (type)

The keys of classNames.

### DemoBookingFact (type)

{ label, icon? }: one fact next to the length.

### DemoBookingHost (type)

{ name, role, bio?, avatarSrc? }.

### DemoBookingTimeZone (type)

{ value, label, keywords? }: one entry of the time zone select.

### DemoBookingSizeOption (type)

{ value, label }: one company size.

### DemoBookingQuote (type)

{ quote, name, role }.

## Examples

- **Minimal design**: design="minimal": a transparent header, no glow, an outlined flat booking card with the agenda and host right on the page, and a simple footer.
- **Brand, 45 minutes from Berlin**: tone and ctaTone brand, a 45 minute call every 15 minutes, a 24 hour clock and the visitor in Berlin: the New York hours show as afternoon and evening times.
- **Inside a site layout**: No header, footer, quote or FAQ; bars for the stepper and pill-shaped fields and slots.
- **When booking fails**: onSubmit rejects: after the spinner the details stay and the error shows above the actions.

## See also

- [Contact Page](https://wingo-ui.com/templates/contact-page) ([Markdown](https://wingo-ui.com/templates/contact-page.md))
- [Calendar](https://wingo-ui.com/components/calendar) ([Markdown](https://wingo-ui.com/components/calendar.md))
- [Steps](https://wingo-ui.com/components/steps) ([Markdown](https://wingo-ui.com/components/steps.md))
- [Scheduler](https://wingo-ui.com/components/scheduler) ([Markdown](https://wingo-ui.com/components/scheduler.md))
- [FAQ Section](https://wingo-ui.com/components/faq-section) ([Markdown](https://wingo-ui.com/components/faq-section.md))

---

Canonical: https://wingo-ui.com/templates/demo-booking-page
More components: https://wingo-ui.com/components · Index for agents: https://wingo-ui.com/llms.txt
