# Booking Slots

> Book a meeting: pick a day, then a free start time, in the host's time zone, and confirm.

Component · CRM · Pro kit · [Live page](https://ui.twentyfirst.media/pro/components/BookingSlots/)

Book a meeting: pick a day, then a free start time, in the host's time zone, and confirm.

- Days without free times are disabled; the first day with times is open by default.
- `value` and `onChange` hold the pick; `onConfirm` shows the confirm button.

## Example

```tsx
import * as React from "react";
import { BookingSlots, Panel } from "@twentyfirstmedia/pro";
import { DAYS } from "./_sales";

export default function Preview() {
  const [value, setValue] = React.useState<{ date: Date | string | number; time: string } | null>({
    date: DAYS[2]!.date,
    time: "10:30",
  });
  return (
    <Panel style={{ maxWidth: 520 }}>
      <BookingSlots
        title="Intro call"
        host="Mara Ellis"
        duration={30}
        timeZone="Europe/Berlin"
        days={DAYS}
        value={value}
        onChange={setValue}
        onConfirm={() => {}}
      />
    </Panel>
  );
}
```

## Props

### BookingSlots

| Prop | Type | Notes |
| --- | --- | --- |
| `days` | `BookingDay[]` | Required |
| `value?` | `{ date: Date \| string \| number; time: string } \| null` |  |
| `onChange?` | `(value: { date: Date \| string \| number; time: string }) => void` |  |
| `onConfirm?` | `(value: { date: Date \| string \| number; time: string }) => void` | Shows "Confirm" once a time is picked. |
| `duration?` | `number` | Minutes. |
| `timeZone?` | `string` | Shown under the times, "Europe/Berlin". |
| `title?` | `string` |  |
| `host?` | `string` |  |
| `className?` | `string` | Extra class on the root element. |
| `style?` | `CSSProperties` | Inline style on the root element. |

### Panel

| Prop | Type | Notes |
| --- | --- | --- |
| `side?` | `boolean` |  |
| `title?` | `string` |  |
| `subtitle?` | `string` |  |
| `action?` | `ReactNode` |  |
| `children?` | `ReactNode` |  |
| `surface?` | `Surface` | `"glass"`: translucent glass over what is behind (maps, 3D, video, photos); `"solid"` opts out inside a glass `UIProvider`. |
| `className?` | `string` | Extra class on the root element. |
| `style?` | `CSSProperties` | Inline style on the root element. |
