# Slot drop

A meeting the agent books lands in the calendar like something set down.

Also called: calendar booking animation, meeting booked.

> chatcn Pro: needs a Pro license (https://chatcn.dev/pro). Install from the `@chatcn-pro` registry with your license token; setup at https://chatcn.dev/docs/chatcn-pro.

Example: A booking you can see land. The meeting the agent books drops in from above, tilted, and lands in its slot with a small squash while the time lights up; whatever it pushes slides down to its new time. Preview: https://chatcn.dev/preview/slot-drop-demo

The new event drops in from above, tilted, speeding up as it falls, and lands in its slot with a small squash while the slot's time lights up. Anything it pushes slides down out of the way to its new time. You see what the agent changed in your day, not just a confirmation line.

## Installation

```bash
npx shadcn@latest add @chatcn-pro/slot-drop
```

## Usage

```tsx
import { SlotDrop } from "@/components/ui/chatcn/pro/slot-drop"

<SlotDrop events={events} arriving={justBooked} startHour={9} hours={4} />
```

## Props

| Prop | Type | Notes |
| --- | --- | --- |
| `events` | `{ id, title, start, duration, tone? }[]` | Minutes after the first hour |
| `arriving` | `string | null` | The event that just arrived drops in |
| `startHour` / `hours` / `hourHeight` | `number` | Default 9, 4 and 56 |

## Accessibility

- Events are a list with their times written out.

## Motion

- A 680 ms drop with easing per segment; moved events slide 420 ms. Reduced motion: they appear in place.

Source: https://chatcn.dev/docs/components/slot-drop