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 ​

with-week-numbers adds an ISO 8601 week column.

View Stepper ​

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

Days of Week ​

disabled-days-of-week 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

Attributes & Properties ​

NameDescription
borderedWhen false, omits the outer frame — use inside popovers (e.g. pk-date-picker).
Type boolean
Default true
disabledType boolean
Default false
disabledDatesRaw disabled-datesType string
disabledDaysOfWeek disabled-days-of-weekType string
disableFuture disable-futureType boolean
Default false
disablePast disable-pastType boolean
Default false
firstDayOfWeek first-day-of-weekType PkCalendarFirstDayOfWeek
Default auto
focusedDate focused-dateType string
localeType string
maxType string
maxRange max-rangeType number
Default 0
minType string
minRange min-rangeType number
Default 0
modeType PkCalendarMode
Default single
monthsType 1 | 2
Default 1
pageBy page-byType PkCalendarPageBy
Default months
readonlyType boolean
Default false
sizeType PkCalendarSize
Default default
todayType string
valueType string
viewType PkCalendarView
Default days
weekdayFormat weekday-formatType 'narrow' | 'short' | 'long'
Default narrow
withOutsideDays with-outside-daysType boolean
Default true
withWeekNumbers with-week-numbersType boolean
Default false

Events ​

NameDescription
changeUser commits a new value
inputValue changes during interaction
pk-focus-dayFocused day changed; detail.date
pk-view-changeView changed; detail.view, detail.date
Edit this page
Last updated: Sep 9, 2026, 7:18 PM