Skip to content

Calendar ​

A calendar for one date, several dates or a period.

SunMonTueWedThuFriSat

We deliver on September 30.

For a field that opens a calendar in a popover, use a Date picker.

Installation ​

ts
import { NuiCalendar } from '@numior/kit';

Usage ​

Show several months side by side, turn on week numbers and change the cell size.

SunMonTueWedThuFriSat

How many months to show side by side.

size
Cell size: sm, md or lg.

Examples ​

Pick several dates ​

Set mode="multiple".

SunMonTueWedThuFriSat

The pickup point is open 4 days.

Pick a period ​

Set mode="range" and add ready-made periods in presets.

SunMonTueWedThuFriSat
SunMonTueWedThuFriSat

Drag across the days to pick a period in one move, and set months to show several months side by side.

Behavior ​

Dates are YYYY-MM-DD strings, such as 2026-09-27. Month and weekday names and the first day of the week follow the app language; locale and weekStart change them.

Dates before min, after max and those for which isDateDisabled returns true cannot be picked. A click on the month or the year opens a list of months or years.

The calendar takes today's date from the browser clock once the page loads. With server rendering, pass today to highlight it from the first frame. Without today or a selected date the server draws the UTC month, so a page cached for over a day needs today or month.

Accessibility ​

Days of the month are buttons, and a screen reader announces the full date, such as "Sunday, September 27, 2026". It also says which days are selected and which one is today. The arrow keys move between the days.

Keys
Action
→
Next day. Previous day in right-to-left layouts.
←
Previous day. Next day in right-to-left layouts.
↓
Same weekday a week later.
↑
Same weekday a week earlier.
Home
First day of the week.
End
Last day of the week.
PageDown
Same day next month, or next year with Shift.
PageUp
Same day last month, or last year with Shift.
↵
Selects the focused day.
Space
Selects the focused day.
Esc
Closes the month or year picker and returns to the days.

API ​

Props

Name
Type
Default
Description
id
string
—
Calendar id attribute. Generated when omitted.
mode
NuiCalendarMode
"single"
What gets selected: one date (single), several dates (multiple) or a period (range).
locale
string
—
Language of month and day names and the first day of the week. Defaults to createNuiConfig.
weekStart
Weekday
—
First day of the week, from 1 (Monday) to 7 (Sunday). Defaults to the locale.
min
string
—
Earliest date that can be selected, January 1, 100 by default.
max
string
—
Latest date that can be selected, December 31, 9999 by default.
isDateDisabled
((date: string) => boolean)
—
Function that disables individual dates, such as weekends.
months
number
1
How many months to show side by side.
weekNumbers
boolean
false
Shows a column with week numbers.
fixedWeeks
boolean
true
Always shows six weeks so the calendar height stays the same between months.
showOutsideDays
boolean
true
Shows days of the neighboring months in the grid.
showToday
boolean
true
Shows a "Today" button under the grid.
today
string
—
Today as YYYY-MM-DD. Without it the browser clock gives the date after mounting.
presets
readonly NuiDatePreset[]
—
Ready-made periods beside the grid, such as "Last 7 days". Work in range mode.
size
NuiSize
"md"
Cell size: sm, md or lg.
disabled
boolean
false
Disables the whole calendar: the days, the arrows and the presets ignore clicks and keys.
previousLabel
string
—
Previous month button label for screen readers. Defaults to "Previous month" from the dictionary.
nextLabel
string
—
Next month button label for screen readers. Defaults to "Next month" from the dictionary.
monthLabel
string
—
Month picker button label for screen readers. Defaults to "Choose month" from the dictionary.
yearLabel
string
—
Year picker button label for screen readers. Defaults to "Choose year" from the dictionary.
todayLabel
string
—
Text of the "Today" button. Defaults to "Today" from the dictionary.
weekLabel
string
—
Week number column heading for screen readers. Defaults to "Week" from the dictionary.

Models

Name
Type
Default
Description
v-model
NuiCalendarValue
null
Selected date, array of dates or { start, end } period, depending on mode.
v-model:month
string
—
Shown month as YYYY-MM.

Slots

Name
Slot props
Description
actions
any
Buttons under the grid next to "Today".

Exposed

Name
Type
Description
focus
(date?: string | undefined) => void
Moves the focus to the given date or to the last focused day.

Texts

Key
Russian
English
month
Выбрать месяц
Choose month
next
Следующий месяц
Next month
previous
Предыдущий месяц
Previous month
today
Сегодня
Today
week
Неделя
Week
year
Выбрать год
Choose year

Edit this page

Search

Esc