The library is still in early development. Breaking changes and bugs may occur without prior notice. Thanks for your interest in using the library!
v0.2.47Beta

Search

Calendar

Source

A customizable calendar component for date selection.

Usage

The Calendar component is built on top of the React DayPicker library.

Import the Calendar component from @bun-ui/react and use it in your project:

import { Calendar } from "@bun-ui/react"
<Calendar />

Examples

Range Selection

Use the mode prop to enable range selection.

Controlled

Each mode require different type of onSelect and selected props

mode="single"

Selected 06/15/2025

mode="range"

Selected from 06/15/2025 to 06/15/2025

mode="multiple"

No dates selected

Date Range Navigation

Use startMonth and endMonth props to restrict the calendar's navigation range. Dates outside this range will have disabled navigation buttons.

This calendar is restricted to Q1 2025 (January to March). Navigation buttons will be disabled outside this range.