Availability
Weekly free-time editor for hosts. Drag empty cells to paint hours, resize edges, and press Delete to remove a block. For guests picking a bookable opening, use Availability Slots.
Gallery
Week grid with a slot count badge. Drag empty cells to paint free time.
Loading…
Installation
CLI
Usage
availability.tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| value | AvailabilitySlot[] | - | Controlled slots (`id`, `day` 0–6, `startMinutes`, `endMinutes`). |
| defaultValue | AvailabilitySlot[] | [] | Initial slots when uncontrolled. |
| onValueChange | (slots: AvailabilitySlot[]) => void | - | Fires after paint, resize, merge, or delete. |
| weekStartsOn | 0 · 1 | 1 | `0` Sunday, `1` Monday. Display order also follows dir. |
| dayStartMinutes | number | 480 | Visible day start from midnight (default 8:00). |
| dayEndMinutes | number | 1200 | Visible day end from midnight (default 20:00). |
| slotMinutes | number | 30 | Snap increment for paint and resize. |
| disabled | boolean | false | Disables interaction and dims the grid. |
| readOnly | boolean | false | Shows slots without paint, resize, or delete. |
| className | string | - | Merged onto the root surface. |
Related
- Availability Slots, bookable time buttons for a day
- Calendar, pick dates on a month grid
- Field, label and describe the week