Ballmac UI home

Salon 1: appointment booking

A booking page for a salon or clinic: choose services (time and price add up), a stylist or anyone, then a day and a time that stylist is free, a live summary, and a confirmation that says exactly what was booked.

State

The normal view. Pick a state to see what the block shows while it loads, is empty or fails.

Open in v0 (opens in a new tab)

Installation

$ pnpm dlx shadcn@latest add @ballmac/salon-1

Usage

Example: salon-1-demo.tsx
"use client"

import { Salon1 } from "@/components/ballmac/blocks/salon-1/salon-1"

export default function Salon1Demo() {
  return <Salon1 />
}

States

Pass state and the block does the rest: skeletons that match its layout, a clear empty message, an error you can retry, and announcements for screen readers.

  • Loading

    Skeleton form and summary under the real heading, announced as loading.

    state="loading"
  • Booking is closed

    Says booking is closed; emptyState sets the copy.

    state="empty"
  • Could not load

    An alert saying nothing was booked, with Try again (onRetry). A booking that fails keeps every choice and says why.

    state="error"

Dependencies

Use with AI

Appointment booking. <Salon1 services={[{ id, name, minutes, price }]} stylists={[{ id, name, specialty? }]} days={[{ id, label, slots: [{ time, stylists: ['id'] }] }]} currency='USD' onBook={({ services, stylist, day, time }) => Promise} />. Times show only when the chosen stylist is free; changing stylist or day clears the time. A failed booking keeps the choices. With the shadcn MCP server set up (guide), ask your agent:

Add the Ballmac UI Salon 1: appointment booking (@ballmac/salon-1) to this project with the shadcn MCP, then use it where it fits.

Use it for

  • A customer-facing booking page
  • Any choose-what, choose-who, choose-when flow

Not for

  • A staff calendar; use calendar-1
  • Class or event tickets; use billing-1

Registry JSON: https://ui.ballmac.com/r/salon-1.json

Free to use in personal and commercial projects.

Ballmac UI Pro

Need the whole screen, not one piece?

150 premium blocks (dashboards, settings, calendars, mail, shops, onboarding), a private shadcn registry and Figma tokens. Blocks that show data come with loading, empty and error states built in.

Not ready? Try three Pro blocks free

Leave your email and the blocks appear right here, ready to copy. Yours to use in any project.