Examples

Meeting room booking

Built with the mantine-schedule skill

Resources
07:00
07:30
08:00
08:30
09:00
09:30
10:00
10:30
11:00
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
19:30
Floor 1

Atrium

12 seats · Screen · Video · Whiteboard

Harbor

6 seats · Screen

Nook

2 seats

Floor 2

Maple

8 seats · Screen · Whiteboard

Cedar

4 seats · Whiteboard

Birch

4 seats · Screen

Floor 3

Summit

20 seats · Screen · Video · Whiteboard

Lookout

6 seats · Whiteboard

Your bookings

[
  {
    "id": "booking-2",
    "title": "1:1 with Sara",
    "roomId": "cedar",
    "start": "2026-11-16 11:00:00",
    "end": "2026-11-16 11:30:00",
    "organizer": "Alex Kim",
    "attendees": 2
  },
  {
    "id": "booking-6",
    "title": "Sprint retro",
    "roomId": "birch",
    "start": "2026-11-17 10:00:00",
    "end": "2026-11-17 11:30:00",
    "organizer": "Alex Kim",
    "attendees": 4
  },
  {
    "id": "booking-11",
    "title": "Vendor demo",
    "roomId": "harbor",
    "start": "2026-11-18 11:00:00",
    "end": "2026-11-18 12:00:00",
    "organizer": "Alex Kim",
    "attendees": 6
  },
  {
    "id": "booking-15",
    "title": "Architecture sync",
    "roomId": "maple",
    "start": "2026-11-19 09:00:00",
    "end": "2026-11-19 10:00:00",
    "organizer": "Alex Kim",
    "attendees": 7
  },
  {
    "id": "booking-19",
    "title": "Focus call",
    "roomId": "nook",
    "start": "2026-11-19 15:30:00",
    "end": "2026-11-19 16:00:00",
    "organizer": "Alex Kim",
    "attendees": 1
  },
  {
    "id": "booking-23",
    "title": "Weekly wrap-up",
    "roomId": "birch",
    "start": "2026-11-20 11:00:00",
    "end": "2026-11-20 12:00:00",
    "organizer": "Alex Kim",
    "attendees": 4
  },
  {
    "id": "team-sync",
    "title": "Team sync",
    "roomId": "harbor",
    "start": "2026-11-16 10:00:00",
    "end": "2026-11-16 10:30:00",
    "organizer": "Alex Kim",
    "attendees": 5,
    "repeatUntil": "2027-01-04"
  }
]

Build the room booking page of an office app: people see which meeting rooms are free and book them.

Data:

  • 8 hard-coded rooms on 3 floors (name, floor, capacity, equipment such as a screen or a whiteboard)
  • about 25 bookings in the current week, generated relative to today so the page always has data; some are the current user's ("Alex Kim"), the others belong to colleagues
  • office hours are 8:00–19:00 on weekdays

Calendar:

  • rooms are rows grouped by floor, with a day view and a week view; the day view opens on today and scrolls to the current time
  • outside office hours and on weekends the time is shown as unavailable and nothing can be booked there
  • each booking shows its title and the organizer; the current user's bookings are visually distinct from the colleagues' ones without adding a lot of color

Booking:

  • dragging across free time in a room, or clicking a free slot (30 minutes), opens a booking form: title, room, start and end, attendees (number), repeat weekly until a date
  • a booking cannot overlap another booking in the same room, cannot be outside office hours, and the attendees cannot exceed the room capacity; the form shows the reason when one of these fails
  • the current user's bookings can be moved and resized in steps of 15 minutes, with the same rules; colleagues' bookings cannot be moved, clicking one shows its details (title, organizer, time, room) read-only
  • clicking one of the current user's bookings opens the form to edit or cancel it; cancelling a repeating booking asks whether to cancel this one or the whole series
  • after every change show a short notification and display the current user's bookings as JSON under the calendar

The component is shown on a demo page that already has a title: do not add a page title or intro text.

Write tests for the component.