v0v0UI that actually books

A v0 booking calendar that shows real availability

v0 generates the React and Next.js screens. Slotr's Booking Kit components and API supply what the mockup can't: open times, durations, prices and a booking that sticks.

  • Entities.

    Your domain, synced. Doctors, rooms, courts, cars — anything.

  • Availability.

    Ask when something can be booked. Get the real answer.

  • Rules.

    Pricing and eligibility that follow your business logic.

  • Quotes.

    Know the price before the booking exists, with reasons.

  • Lifecycle.

    Create, confirm, reschedule, cancel. One API, safe by default.

  • No double-booking.

    Locks and slot holds, so every slot has exactly one owner.

  • Booking search.

    Your entities, indexed. Search by price, distance and real availability.

  • AI recommendations.

    Suggests the best booking using your rules, prices and availability.

How it works

From a generated screen to a booking that holds.

  1. 1

    Describe your booking model

    List what customers book and how long it takes. For a barbershop: three barbers, a cut is 30 minutes, cut and beard is 45, and each barber keeps their own hours.

  2. 2

    Generate the screens with Slotr components

    Add the Slotr plugin and ask v0 to use the Booking Kit on each barber page. For a fully custom layout, ask for headless mode and v0 renders its own UI on top of the API.

    <SlotrBooking bookable="b_marco" theme="dark" accent="sand" />
  3. 3

    Call the API from server code

    Keep the secret key in an environment variable and make Slotr calls in route handlers or server actions. Client components receive results, never credentials.

  4. 4

    Add rules for the busy hours

    Saturday mornings sell out and Tuesday afternoons don't. Create rules for that once, in code or in the Console, and every price the calendar shows follows them.

    await slotr.rules.create({
      appliesTo: { type: "barber" },
      when: [{ weekday: "tue", startsAfter: "13:00" }],
      then: { price: "-15%" }
    });
  5. 5

    Deploy and go live

    Set the same environment variable in production, book one appointment end to end and reschedule it. If the confirmation and the new time both arrive, you're live.

What you skip

What v0 doesn't have to fake. A good-looking calendar is only the surface.

  • 01

    Mock times that look finished

    A generated calendar ships with hardcoded slots. It looks done in the preview, but it doesn't know Marco is off on Mondays or that the 10:00 slot was taken an hour ago.

  • 02

    Durations that reshape the grid

    A 30-minute cut and a 45-minute cut with beard need different start times. A fixed 30-minute grid either hides valid slots or offers ones that run into the next appointment.

  • 03

    "Any barber" in one view

    Customers often don't care who cuts their hair, only when. Merging three barbers' availability into one picker, without offering the same minute twice, is backend work a UI generator can't do.

  • 04

    Secrets in client components

    When data fetching lands in a client component, the API key tends to follow it into the browser. Booking calls belong in server code, and the components should only render results.

  • 05

    The price on the button vs the price charged

    The service card says $35, the checkout adds the beard and a Saturday surcharge. If both don't come from the same quote, customers see one total and pay another.

  • 06

    Only the happy path

    v0 is great at the booking screen. Rescheduling, cancelling inside a notice window and showing why a time is unavailable need rules and lifecycle states behind them.

Prompt and code

Ask for the component. Keep the calls on the server.

Drop it into your product. No per-provider accounts, no iframes — your database stays the source of truth.

Prompt
Create a booking page for a barbershop in Next.js.
Use SlotrBooking from the Slotr Booking Kit on each barber page,
styled to match our dark theme with the sand accent.
Add an "any barber" search with SlotrSearch type="barber".
All Slotr calls go in server actions.
Server action
"use server";

export async function moveAppointment(id, start) {
  return slotr.bookings.reschedule(id, { start });
}

export async function cancelAppointment(id) {
  return slotr.bookings.cancel(id, { reason: "customer" });
}
Generated UI, Booking Kit components and two server actions. Availability and rules stay in Slotr.
Booking Kit

Times that fit the service. Styled like the rest of your v0 app.

Pick cut and beard and the calendar only offers 45-minute starts that fit before the next booking. Customize every part, or go headless and keep v0's markup.

Accent
Corners
Theme
<SlotrBooking
  bookable="therapist_42"
  accent="#D9C7A0"
  radius="soft"
  theme="dark"
/>
MS
Marco SilvaCut and beard
45 minIn personEurope/Amsterdam
45 min$42
October 2026
SunMonTueWedThuFriSat
Tue 6th
Guide

How to wire a v0 booking UI to real data

Pick component or headless per screen

A v0 booking calendar component looks right from the first generation, but it needs a backend that knows what can be booked. With Slotr you have two ways to supply it, and you can mix them in one app.

Use the Booking Kit where the calendar is the whole job, such as a barber's booking page. It already handles dates, times, payment and the summary, and it is fully customizable. Use headless mode where v0's layout matters more, such as a homepage that shows the next three open times as cards. Both read from the same availability and rules.

Keep Slotr calls in server code

Next.js makes it easy to fetch data from either side, which is why keys leak. Put your Slotr secret in an environment variable and call the API only from route handlers and server actions. Client components get availability and quotes as props or action results.

This also keeps the generated components easy to regenerate. When you prompt v0 for a new design, the server actions stay as they are and the booking behavior doesn't change.

Design for durations, not slots

Store each service's length on the bookable, or pass it with the query, and let Slotr return start times that fit. A 45-minute service at 10:30 is valid only if nothing starts before 11:15. Slotr does that math against existing appointments and calendar events, so your UI never has to.

For "any barber" views, query availability across all barbers and group results by time. Each slot still belongs to one barber, and the booking goes to whoever owns it.

Build the screens that come after booking

Ask v0 for the reschedule and cancel screens in the same session. Wire them to bookings.reschedule and bookings.cancel, and subscribe to booking.rescheduled and booking.cancelled webhooks to send confirmations. When a time is unavailable, show the reason Slotr returns, such as a notice window or a barber's day off.

Then test the edges in the preview: reschedule into a slot that is too short for the service, cancel inside the notice window and book the last Saturday opening from two browsers. Each case should end in a clear message, not a broken state. Booking Management in the Console shows every test appointment with its price breakdown, so you can confirm the Tuesday discount fired only where it should.

Questions about v0 booking calendars

Can v0 generate a booking calendar that works with real data?

Yes, when the calendar is backed by an API that knows availability. Ask v0 to use the Slotr Booking Kit, or to build a headless UI on the Slotr API. Open times, durations and prices then come from real bookings and rules instead of mock data.

Does the Slotr Booking Kit work in a Next.js app?

Yes. The Booking Kit is a set of React components, including a calendar with dates, times, payment and summary, plus search inputs with autocomplete. They are fully customizable, so they can match the theme v0 generated for the rest of your app.

Should I use the Booking Kit or keep v0's calendar UI?

Use whichever fits the screen. The Booking Kit saves the most work on dedicated booking pages. Headless mode lets you keep v0's markup and call the same APIs yourself. Many apps use both, with the same availability behind them.

Where should I call the Slotr API in Next.js?

In server code only: route handlers or server actions that read the key from an environment variable. Client components receive the results. That keeps credentials out of the browser and lets you regenerate UI without touching booking logic.

How do services with different lengths work in the calendar?

Each service carries its duration, and Slotr returns only start times where the full appointment fits around existing bookings and calendar events. A 45-minute service never gets offered in a 30-minute gap.

Can customers reschedule or cancel from a v0-built app?

Yes. Wire the screens to bookings.reschedule and bookings.cancel. Rules such as a 24-hour notice window are enforced by Slotr, and if a change isn't allowed the response explains why, so your UI can show the reason.

How do I get access to Slotr for a v0 project?

Join the waitlist. Slotr is pre-launch and is onboarding early users in groups. The v0 plugin, the Booking Kit and the API shown here are what you will build with once you're in.

Generate the UI. Slotr makes it bookable.

Join the waitlist for early access to Slotr for v0 projects.