Components/Calendar
Binhlaig UI Component

Calendar

A flexible date picker for single dates, ranges, multiple selections and custom rules.

Installation

Initialize Binhlaig UI once, then install Calendar with the saved installer.

Initialize first

npx binhlaig-ui@latest init
Terminal
npx binhlaig-ui@latest add calendar

Import

Import Calendar from your UI directory.

import { Calendar } from "@/components/ui/calendar"

Single Date

Select one date with controlled React state.

August 2026

Date Range

Select a start and end date across one or more months.

August 2026
September 2026

Multiple Dates

Allow users to select several independent dates.

August 2026
August 2026

Disabled Dates

Disable dates using matchers such as ranges and weekdays.

August 2026

Update or Overwrite

Replace an older Calendar source with the latest registry version.

npx binhlaig-ui@latest add calendar --overwrite

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.