Skip to content

Calendar

A calendar component that supports date selection, range selection, and event markers.

Basic Usage

Display a basic single-date calendar. Note: The component uses @internationalized/date to handle dates.

3月 2026
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
Event Date, March 2026

Selected: 2026-03-24

Example

Range Selection & Events

Set mode="range" to enable date range selection. You can also use the events prop to mark specific dates.

Event Date, March 2026
3月 2026
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4

Start: 2026-03-24

End: 2026-03-31

Example

Popover Mode

Combine with BrCalendarPopover to display the calendar in a popover when triggered.

Select Date:
Example

API

BrCalendar Props

NameTypeDefaultDescription
modelValueDateValue | DateValue[] | { start: DateValue, end: DateValue }-The selected date(s)
mode'single' | 'multiple' | 'range''single'Selection mode
eventsEventMarker[][]Event markers for specific dates
displayMode'inline' | 'popover''inline'Display mode, inline or popover
weekStartsOn0 | 1 | 2 | 3 | 4 | 5 | 60Start day of the week (0 for Sunday)
showToolbarbooleantrueWhether to show the header toolbar

EventMarker Type

PropertyTypeDescription
datestring | Date | DateValueTarget date
type'dot' | 'badge' | 'text'Marker type
colorstringMarker color (supports CSS variables)
labelstringHover tooltip text