Binhlaig logoBinhlaig UI
Components/Calendar
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 calendar

For 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.

Disabled Dates

Disable dates using matchers such as ranges and weekdays.

API Reference

Calendar accepts React DayPicker props.

PropPurpose
modesingle, multiple or range selection.
selectedCurrent selected date value.
onSelectSelection change callback.
disabledDates that cannot be selected.
numberOfMonthsNumber of visible months.
captionLayoutLabel or dropdown navigation.
showOutsideDaysShow dates outside the current month.