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

RangeCalendar ​

Paint the days you are free, or busy

A month where the days are chosen by dragging across them, again and again, to build up a set: availability, days off, blackout dates, opening days. The value is every chosen day, not one range. For one date, use DatePicker. For a single range from one date to another, use Calendar with range.

Availability
October 2026
MonTueWedThuFriSatSun
4 days in 2 blocks
  • v-model is the chosen days as sorted YYYY-MM-DD strings. Drag across days to add them. A drag that starts on a chosen day removes instead (it shows a dashed outline while you do). A plain click toggles one day. Nothing changes until you let go.
  • Keyboard: one day is the tab stop. The arrow keys move by day and week. Home and End go to the ends of the week. Page Up and Page Down change the month. Space or Enter toggles the day. Hold Shift while you press the arrow keys to paint as you go: the first day decides whether the stroke adds or removes. Choices are announced.
  • min, max and disabledDates make days unpaintable (a drag skips them, and a drag that starts on them does nothing). The footer says "5 days in 2 blocks" and has Clear all. #summary="{ blocks }" writes your own, and change gives the blocks as { start, end, count }.
  • The grid is a role="grid" with aria-multiselectable. Each day is named in full ("Friday, May 1, 2026"). locale and weekStart set the names and the first column. labels translates the wording. The component marks today after mount, so a server-rendered page agrees.

Usage ​

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

API ​

Props

NameTypeDefaultDescription
weekStart0 | 110 = Sunday, 1 = Monday
localestring"en"
minstring—
maxstring—
disabledDates((iso: string) => boolean)—
monthstring—month shown first (YYYY-MM); defaults to the first chosen day, else this month
labelstring"Days"
labelsPartial<{ prev: string; next: string; clear: string; summary: (days: number, blocks: number) => string; selected: (day: string) => string; cleared: (day: string) => string; hint: string; }>—
modelValuestring[][]every chosen day, as sorted `YYYY-MM-DD`

Events

NamePayloadDescription
update:modelValue[value: string[]]
change[blocks: DayBlock[]]

Slots

NameScopeDescription
summary{ blocks: DayBlock[]; }

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