A customizable calendar component for date selection.
Su | Mo | Tu | We | Th | Fr | Sa |
---|---|---|---|---|---|---|
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 />
Use the mode
prop to enable range selection.
Su | Mo | Tu | We | Th | Fr | Sa |
---|---|---|---|---|---|---|
mode="single"
Su | Mo | Tu | We | Th | Fr | Sa |
---|---|---|---|---|---|---|
Selected 06/15/2025
mode="range"
Su | Mo | Tu | We | Th | Fr | Sa |
---|---|---|---|---|---|---|
Selected from 06/15/2025 to 06/15/2025
mode="multiple"
Su | Mo | Tu | We | Th | Fr | Sa |
---|---|---|---|---|---|---|
No dates selected
Use startMonth
and endMonth
props to restrict the calendar's navigation range. Dates outside this range will have disabled navigation buttons.
Su | Mo | Tu | We | Th | Fr | Sa |
---|---|---|---|---|---|---|