You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[1] As of v0.9.0, you can use functions to define the header, headerTitle, headerArrows, weekdays and weeks styles. Functions should accept a page object and return a configured style.
[2] As of v0.8.0, the dayContentHover style has been deprecated and you can optionally use a function to define the dayContent style. This function should accept an object parameter with the following properties (isHovered, isFocused, day). This function should return the configured style.
[3] As of v0.9.0, you can use functions to define the navMonthCell and navYearCell styles. Functions should accept a nav-month-item object and nav-year-item object, respectively.
Weekday ordinal position from the start or end of the month.
key: 1 to 6, -1 to -6 / value: 1: Sun to 7: Sat
weeks
Number, Array
Week number from the start or end of the month.
1 to 6, -1 to -6
months
Number, Array
Months of the year.
1 to 12
years
Number, Array
Year numbers.
4-digit integer
dailyInterval
Number
Interval number of days from the start date (or today when no start date provided).
n > 0
weeklyInterval
Number
Interval number of weeks from the start date (or today).
n > 0
monthlyInterval
Number
Interval number of months from the start date (or today).
n > 0
yearlyInterval
Number
Interval number of years from the start date (or today).
n > 0
Calendar
Props {#calendar-props}
Name
Type
Description
Default
formats
Object
Formats to use when display and parsing dates for various calendar sections
Reference code
nav-visibility
String
Visibility state of the navigation panel. Use "hover" to automatically show when title is hovered on non-touch devices or tapped on touch devices. Use "focus" to automatically show when title enters or leaves focus. Use "visible" and "hidden" for manual control.
"focus"
from-page
Object
Active page for single paned calendar or the left pane for double paned calendar. Use the .sync modifier for two-way binding.
{ month: *thisMonth*, year: *thisYear* }
to-page
Object
Active page for the right pane for double paned calendar. Use the .sync modifier for two-way binding.
{ month: *nextMonth*, year: *nextMonthYear* }
min-page
Object
Earliest page (month, year) that the user can navigate to.
undefined
max-page
Object
Latest page (month, year) that the user can navigate to.
undefined
min-date
Date
Date that is used to compute min-page.
undefined
max-date
Date
Date that is used to compute max-page.
undefined
is-double-paned
Boolean
Puts two calendars side by side. When window is constrained only a single calendar is displayed.
false
is-linked
Boolean
When is-double-paned, navigation panes are linked to consecutive months.
false
is-vertical
Boolean
When is-double-paned, panes are in vertical orientation.
false
is-expanded
Boolean
Expands calendar to fill the full width of its container.
false
pane-width
Number
Width of a single pane, in pixels.
256
theme-styles
Object
A variety of styles that are used to customize different components of the calendar.
Background color of the selected and dragged highlighted regions (opacity: 0.5 for dragged). This setting is overridden by select-attribute and drag-attribute if specified.
"#66B3CC"
select-attribute
Object
Attribute to use for the date selection in all modes.
Day content style to associate with the attribute.
undefined
dates
Date, Object, Array[Date, Object]
Date or date range objects (patterns supported) to include for the attribute.
undefined
excludeDates
Date, Object, Array[Date, Object]
Date or date range objects (patterns supported) to exclude. All other dates are included.
undefined
customObject
Any
Assign any custom data to this property for easy access within event handlers.
undefined
order
Number
Order that the attribute should be displayed. Higher numbers take precedence in appearance.
0
Highlight
Property
Type
Description
Default
animated
Boolean
Highlight is animated on appearing, disappearing or range change.
true
height
String
Height of highlighted region.
"1.8rem"
backgroundColor
String
Background color of highlighted region.
"rgba(0, 0, 0, 0.5)"
borderColor
String
Border color of highlighted region.
undefined
borderWidth
String
Border width of highlighted region.
"0"
borderStyle
String
Border style of highlighted region.
"solid"
borderRadius
String
Border radius of highlighted region.
"1.8rem"
opacity
Number
Opacity of highlighted region.
1
Dot
Property
Type
Description
Default
diameter
String
Diameter of dot.
"5px"
backgroundColor
String
Background color of dot.
"rgba(0, 0, 0, 0.5)"
borderColor
String
Border color of dot.
undefined
borderWidth
String
Border width of dot.
0
borderStyle
String
Border style of dot.
"solid"
borderRadius
String
Border radius of dot.
"50%"
opacity
Number
Opacity of dot.
1
Bar
Property
Type
Description
Default
height
String
Height of bar.
"5px"
backgroundColor
String
Background color of bar.
"rgba(0, 0, 0, 0.5)"
borderColor
String
Border color of bar.
undefined
borderWidth
String
Border width of bar.
0
backgroundColor
String
Background color of bar.
undefined
opacity
Number
Opacity of bar.
1
Popover
Property
Type
Description
Default
label
String, Function
Text string (or function that returns a string) to display in the popover content row. For functions, attribute is provided as the first parameter and the day is provided as the second.
undefined
labelStyle
Object, Function
Label style object (or function that returns an object). For functions, attribute is provided as the first paramter and the day is provided as the second.
undefined
hideIndicator
Boolean
Hides the indicator symbol on the left side of the popover content row.
false
slot
String
Name of slot to use to display the popover content row.
undefined
visibility
String
Visibility of the popover when this label or slot is displayed ("hover, "focus", "visible", "hidden").
"hover"
isInteractive
Boolean
Determines if the user can interract with the popover content. If two or more popovers conflic, true overrides.
false
Content Style
Content style is just a style object. All normal style properties apply.
Content Hover Style (Deprecated)
NOTE: As of v0.8.0, the contentHoverStyle property has been deprecated in favor of using a function to define the contentStyle property. This functions accepts an object parameter with the following properties (isHovered, isFocused, day). This function should return the configured style.