Binhlaig UI Component
Calendar
A flexible date picker for single dates, ranges, multiple selections and custom rules.
Installation
Install Calendar in your project.
Terminal
npx binhlaig-ui@latest add calendarFor project setup, installer selection, dependencies, and advanced installation instructions, see the Installation Guide.
View Installation Guide →Update or Overwrite →Import
Import Calendar from your UI directory.
import { Calendar } from "@/components/ui/calendar"Single Date
Select one date with controlled React state.
Date Range
Select a start and end date across one or more months.
Multiple Dates
Allow users to select several independent dates.
Month and Year Dropdown
Use dropdown captions for quickly navigating across years.
Disabled Dates
Disable dates using matchers such as ranges and weekdays.
API Reference
Calendar accepts React DayPicker props.
| Prop | Purpose |
|---|---|
mode | single, multiple or range selection. |
selected | Current selected date value. |
onSelect | Selection change callback. |
disabled | Dates that cannot be selected. |
numberOfMonths | Number of visible months. |
captionLayout | Label or dropdown navigation. |
showOutsideDays | Show dates outside the current month. |