# Calendar — Detent

> A week calendar with an assistant that finds the time. Ask for “45 minutes with Maya and Jonas before the weekend” and it works out when you’re all free, offers the best few, and books the one you pick.

Canonical: https://detentui.com/blocks/calendar
Last updated: 2026-11-10

## About

A week calendar with an assistant that finds the time. Ask for “45 minutes with Maya and Jonas before the weekend” and it works out when you’re all free, offers the best few, and books the one you pick.

## Details

- The finding is real. It reads how long, with whom and when from your sentence, lays their busy time over your week, and searches working hours from now on for every stretch where you’re all free for the whole length.
- Suggestions are drawn where they’d go, dashed, and light up with the list as you point at either. Booking drops the event in with everyone on it, and Undo is right there.
- The rest is a calendar that works. Click an empty slot to add an event and name it in place. Drag an event to another time or day, or focus it and use the arrow keys, a quarter hour or a day at a time.
- Overlapping events share their hour side by side. Calendars toggle on and off, the month jumps between weeks, and the line for now sits across today.
- Events move by transform while dragged and land on release; overlays and suggestions are their own layers, so nothing moves the page.
- Below 1024px the sidebar folds away, and below 768px it shows the three days from yesterday to tomorrow.

## Keyboard shortcuts

| Keys | Action |
| --- | --- |
| ↵ | Ask for a time |
| ↑ ↓ | Move an event a quarter hour |
| ← → | Move an event a day |
| Esc | Put the suggestions away |

## Install (Pro required)

```bash
npx shadcn add @detent-pro/calendar
```

## Related
- [All blocks](https://detentui.com/blocks)
- [Pro](https://detentui.com/pro)
