Calendar
A calendar component that supports date selection, range selection, and event markers.
Component Features
- 📅 Multiple Selection Modes: Supports single date, range selection, and range with time selection.
- 🏷️ Event Markers: Supports event markers on dates.
- 📆 Dual Display: Supports
monthandyearview modes. - 🛠️ Toolbar: Supports custom toolbar with navigation and today button.
- 🌍 Internationalization: Supports i18n for language-specific date formatting.
- 🎨 Theme Customization: Based on
BrConfigProviderfor global theming and TailwindCSS local overrides.
Basic Usage
Display a basic single-date calendar. Note: The component uses @internationalized/date to handle dates.
Range Selection & Events
Set mode="range" to enable date range selection. You can also use the events prop to mark specific dates.
Popover Mode
Combine with BrCalendarPopover to display the calendar in a popover when triggered.