Skip to content
Calm motion: animations on this site only fade, with no movement

Availability grid ​

A week of time cells, to mark when a person is free

Lets a person mark the times when they are free, for example to find a time to record with a guest. A drag over the cells marks them. To pick one free time that you offer, use the slot picker.

Basic
MonTueWedThuFri
9:00 AMbusybusybusybusybusy
9:30 AMbusybusybusybusybusy
10:00 AMbusyfreebusybusybusy
10:30 AMbusyfreebusybusybusy
11:00 AMbusyfreebusybusybusy
11:30 AMbusybusybusybusybusy
12:00 PMbusybusybusybusybusy
12:30 PMbusybusybusybusybusy
1:00 PMbusybusybusybusybusy
1:30 PMbusybusybusybusybusy
2:00 PMbusybusybusyfreebusy
2:30 PMbusybusybusyfreebusy
3:00 PMbusybusybusybusybusy
3:30 PMbusybusybusybusybusy
4:00 PMbusybusybusybusybusy
4:30 PMbusybusybusybusybusy

Free: 2.5 hours

  • days are the columns. They can be any text, for example Mon or 2026-11-16. The rows are the times from day-start to day-end (default 9 to 18), in cells of step minutes (default 30).
  • v-model is the list of free cells, each as day HH:MM, for example Mon 09:30. Your app turns it into a time on a date.
  • A drag paints the rectangle from the first cell to the current one. If the first cell is busy, the drag marks the cells free. If it is free, the drag marks them busy. A drag works with a finger too.
  • The grid has one Tab stop. The arrow keys move between the cells. Home and End go to the first and last day. Space or Enter marks a cell free or busy.
  • Screen readers hear the day, the time, and "free" or "busy" for each cell. locale shows the times in the format of a language. disabled makes the grid read-only.
  • Change the words with labels or a label pack: label (the name of the grid), free, and busy.

Usage ​

ts
import { BlessAvailabilityGrid } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
days*string[]—the columns: any text, for example `Mon` or `2026-11-16`
dayStartnumber9the first and the last hour (0–24)
dayEndnumber18
stepnumber30minutes in one cell
localestring—shows the times in the format of this locale
disabledboolean—
labelsPartial<{ label: string; free: string; busy: string; }>—
modelValuestring[][]the free cells, each as `day HH:MM`, for example `Mon 09:30`

Events

NamePayloadDescription
update:modelValue[value: string[]]

Released under the MIT License. Character names and artwork belong to their owners.