Search Plus UI Blocks

Find a block, a category or a site

Book a classbook-class-dialog

Use in Plus UI
npx shadcn@latest add https://blocks.plusui.com/r/book-class-dialog.json

Classes · 3 variants

← → to step through · + on a thumbnail to compare side by side (up to 3)

/preview/book-class-dialog
Open ↗

Default content

{
  "eyebrow": "Book a class",
  "title": "Pick a class. We'll keep your place.",
  "description": "Places open seven days ahead. Choose a time, check how full it is, and confirm. Your spot is held the moment you do.",
  "days": [
    {
      "id": "mon",
      "label": "Mon",
      "dateLabel": "Mon 12 Oct",
      "slots": [
        {
          "id": "mon-0630",
          "start": "06:30",
          "end": "07:15",
          "name": "Engine",
          "coach": {
            "name": "Grace Adeyemi",
            "avatar": {
              "src": "https://images.unsplash.com/photo-1494790108377-be9c29b29330?auto=format&fit=crop&crop=faces&w=96&h=96&q=80",
              "alt": "Portrait of Grace Adeyemi"
            }
          },
          "room": "Conditioning bay",
          "intensity": 5,
          "spots": 3,
          "capacity": 14
        },
        {
          "id": "mon-0730",
          "start": "07:30",
          "end": "08:25",
          "name": "Barbell Foundations",
          "coach": {
            "name": "Maren Ekholm",
            "avatar": {
              "src": "https://images.unsplash.com/photo-1580489944761-15a19d654956?auto=format&fit=crop&crop=faces&w=96&h=96&q=80",
              "alt": "Portrait of Maren Ekholm"
            }
          },
          "room": "Strength floor",
          "intensity": 3,
          "spots": 5,
          "capacity": 12
        },
        {
          "id": "mon-1215",
          "start": "12:15",
          "end": "12:45",
          "name": "Core & Posture",
          "coach": {
            "name": "Jonah Okafor",
            "avatar": {
              "src": "https://images.unsplash.com/photo-1566492031773-4f4e44671857?auto=format&fit=crop&crop=faces&w=96&h=96&q=80",
              "alt": "Portrait of Jonah Okafor"
            }
          },
          "room": "Studio 2",
          "intensity": 2,
          "spots": 9,
          "capacity": 16
        },
        {
          "id": "mon-1730",
          "start": "17:30",
          "end": "18:30",
          "name": "Strength Club",
          "coach": {
            "name": "Dario Mendes",
            "avatar": {
              "src": "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?auto=format&fit=crop&crop=faces&w=96&h=96&q=80",
              "alt": "Portrait of Dario Mendes"
            }
          },
          "room": "Strength floor",
          "intensity": 4,
          "spots": 2,
          "capacity": 12
        },
        {
          "id": "mon-1845",
          "start": "18:45",
          "end": "19:45",
          "name": "Vinyasa Flow",
          "coach": {
            "name": "Leila Haddad",
            "avatar": {
              "src": "https://images.unsplash.com/photo-1531746020798-e6953c6e8e04?auto=format&fit=crop&crop=faces&w=96&h=96&q=80",
              "alt": "Portrait of Leila Haddad"
            }
          },
          "room": "Studio 1",
          "intensity": 3,
          "spots": 0,
          "capacity": 20
        }
      ]
    },
    {
      "id": "tue",
      "label": "Tue",
      "dateLabel": "Tue 13 Oct",
      "slots": [
        {
          "id": "tue-0630",
          "start": "06:30",
          "end": "07:15",
          "name": "Kettlebell Circuit",
          "coach": {
            "name": "Dario Mendes",
            "avatar": {
              "src": "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?auto=format&fit=crop&crop=faces&w=96&h=96&q=80",
              "alt": "Portrait of Dario Mendes"
            }
          },
          "room": "Conditioning bay",
          "intensity": 4,
          "spots": 6,
          "capacity": 14
        },
        {
          "id": "tue-0930",
          "start": "09:30",
          "end": "10:15",
          "name": "Mobility Lab",
          "coach": {
            "name": "Tobias Lunde",
            "avatar": {
              "src": "https://images.unsplash.com/photo-1552058544-f2b08422138a?auto=format&fit=crop&crop=faces&w=96&h=96&q=80",
              "alt": "Portrait of Tobias Lunde"
            }
          },
          "room": "Studio 2",
          "intensity": 2,
          "spots": 8,
          "capacity": 14
        },
        {
          "id": "tue-1730",
          "start": "17:30",
          "end": "18:25",
          "name": "Barbell Foundations",
          "coach": {
            "name": "Maren Ekholm",
            "avatar": {
              "src": "https://images.unsplash.com/photo-1580489944761-15a19d654956?auto=format&fit=crop&crop=faces&w=96&h=96&q=80",
              "alt": "Portrait of Maren Ekholm"
            }
          },
          "room": "Strength floor",
          "intensity": 3,
          "spots": 1,
          "capacity": 12
        },
        {
          "id": "tue-1845",
          "start": "18:45",
          "end": "19:30",
          "name": "Engine",
          "coach": {
            "name": "Grace Adeyemi",
            "avatar": {
              "src": "https://images.unsplash.com/photo-1494790108377-be9c29b29330?auto=format&fit=crop&crop=faces&w=96&h=96&q=80",
              "alt": "Portrait of Grace Adeyemi"
            }
          },
          "room": "Conditioning bay",
          "intensity": 5,
          "spots": 4,
          "capacity": 14
        }
      ]
    },
    {
      "id": "wed",
      "label": "Wed",
      "dateLabel": "Wed 14 Oct",
      "slots": [
        {
          "id": "wed-0630",
          "start": "06:30",
          "end": "07:30",
          "name": "Strength Club",
          "coach": {
            "name": "Maren Ekholm",
            "avatar": {
              "src": "https://images.unsplash.com/photo-1580489944761-15a19d654956?auto=format&fit=crop&crop=faces&w=96&h=96&q=80",
              "alt": "Portrait of Maren Ekholm"
            }
          },
          "room": "Strength floor",
          "intensity": 4,
          "spots": 3,
          "capacity": 12
        },
        {
          "id": "wed-0730",
          "start": "07:30",
          "end": "08:30",
          "name": "Vinyasa Flow",
          "coach": {
            "name": "Leila Haddad",
            "avatar": {
              "src": "https://images.unsplash.com/photo-1531746020798-e6953c6e8e04?auto=format&fit=crop&crop=faces&w=96&h=96&q=80",
              "alt": "Portrait of Leila Haddad"
            }
          },
          "room": "Studio 1",
          "intensity": 3,
          "spots": 10,
          "capacity": 20
        },
        {
          "id": "wed-1730",
          "start": "17:30",
          "end": "18:15",
          "name": "Engine",
          "coach": {
            "name": "Dario Mendes",
            "avatar": {
              "src": "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?auto=format&fit=crop&crop=faces&w=96&h=96&q=80",
              "alt": "Portrait of Dario Mendes"
            }
          },
          "room": "Conditioning bay",
          "intensity": 5,
          "spots": 0,
          "capacity": 14
        },
        {
          "id": "wed-2000",
          "start": "20:00",
          "end": "21:15",
          "name": "Slow Flow & Yin",
          "coach": {
            "name": "Jonah Okafor",
            "avatar": {
              "src": "https://images.unsplash.com/photo-1566492031773-4f4e44671857?auto=format&fit=crop&crop=faces&w=96&h=96&q=80",
              "alt": "Portrait of Jonah Okafor"
            }
          },
          "room": "Studio 1",
          "intensity": 1,
          "spots": 14,
          "capacity": 20
        }
      ]
    }
  ],
  "fewAt": 3,
  "credits": "Uses 1 credit · 7 left on your 10-class pack",
  "policy": {
    "title": "Before you book",
    "items": [
      "Cancel 8 hours or more before the start and your credit comes straight back.",
      "Later cancellations and no-shows use the credit.",
      "Arrive 10 minutes early for your first class so the coach can say hello."
    ]
  },
  "image": {
    "src": "https://images.unsplash.com/photo-1518611012118-696072aa579a?auto=format&fit=crop&w=960&h=720&q=80",
    "alt": "A mat class in a bright loft studio"
  },
  "labels": {
    "days": "Choose a day",
    "choose": "Classes on this day",
    "spots": "{count} spots left",
    "few": "Only {count} left",
    "left": "{count} left",
    "full": "Full",
    "intensity": "Intensity {level} of 5",
    "with": "with {coach}",
    "book": "Book this class",
    "waitlist": "Join the waitlist",
    "dialogTitle": "Confirm your place",
    "when": "{day} · {start}–{end} · {room}",
    "taken": "{taken} of {capacity} places taken",
    "agree": "I've read the cancellation policy",
    "confirm": "Confirm booking",
    "confirmWaitlist": "Join waitlist",
    "cancel": "Not now",
    "doneTitle": "You're booked in",
    "doneText": "{name} on {day} at {start}. It's in your bookings, and we'll send a reminder two hours before.",
    "doneWaitlistTitle": "You're on the waitlist",
    "doneWaitlistText": "You're number {position} for {name} on {day}. If a place opens, we'll text you and hold it for 30 minutes.",
    "close": "Done"
  }
}