Components

Calendar ​

Calendars present single-date or range selection in a compact month view.

Single Date ​

Use single mode when the interface needs one chosen day with minimal extra UI.

Disabled Days ​

Disabled ranges are useful for unavailable dates.

Date Ranges ​

Range mode works well for reporting, booking, and filtering flows where a start and end date belong together.

Dropdown month and year captions help when users need to move quickly across larger time spans.

Two-Month Display ​

months="2" shows two months side by side — useful for ranges and booking-style UIs.

Week Numbers ​

withWeekNumbers adds an ISO 8601 week column.

View Stepper ​

Click the month/year title to step between day, month, and year views.

Days of Week ​

disabledDaysOfWeek takes space-separated weekday names (sun, mon, …).

API ​

Slots ​

NameDescription
previous-icon—
next-icon—
footer—
day-YYYY-MM-DDCustom content for a specific day cell

Props ​

NameDescription
borderedWhen false, omits the outer frame — use inside popovers (e.g. pk-date-picker).
Type boolean
Default true
disabledType boolean
Default false
disabledDatesRawType string
disabledDaysOfWeekType string
disableFutureType boolean
Default false
disablePastType boolean
Default false
firstDayOfWeekType PkCalendarFirstDayOfWeek
Default auto
focusedDateType string
localeType string
maxType string
maxRangeType number
Default 0
minType string
minRangeType number
Default 0
modeType PkCalendarMode
Default single
monthsType 1 | 2
Default 1
pageByType PkCalendarPageBy
Default months
readonlyType boolean
Default false
readOnlyAlias for readonly.
sizeType PkCalendarSize
Default default
todayType string
valueType string
viewType PkCalendarView
Default days
weekdayFormatType 'narrow' | 'short' | 'long'
Default narrow
withOutsideDaysType boolean
Default true
withWeekNumbersType boolean
Default false

Events ​

NameDescription
onChangeUser commits a new value
onInputValue changes during interaction
onPkFocusDayFocused day changed; detail.date
onPkViewChangeView changed; detail.view, detail.date
Edit this page
Last updated: Sep 9, 2026, 7:18 PM