Blossom UI

Calendar

Calendar component, an inline month grid with single and range selection, min and max dates, disabled days, locale support and keyboard navigation.

How to use it

Run npx @blossomui/react add calendar, or copy src/components/UI/Calendar/Calendar.tsx into your React project and import it.

import { Calendar } from './components/ui/Calendar'

Props

CalendarLabels

PropTypeDescription
previousMonth (required)string
nextMonth (required)string

DateRange

PropTypeDescription
start (required)Date | null
end (required)Date | null

CalendarSingleProps

PropTypeDescription
mode'single'`single` chooses one day, `range` chooses a first and a last day.
valueDate | null
defaultValueDate | null
onChange(date: Date) => void

CalendarRangeProps

PropTypeDescription
mode (required)'range'
valueDateRange
defaultValueDateRange
onChange(range: { start: Date; end: Date }) => voidCalled once both days are chosen.

Getting started

  • Introduction
  • Installation
  • Changelog

Customization

  • Colors
  • Brand color
  • Texts and translation

Components

  • Accordion
  • Alert dialog
  • Alerts
  • Avatar
  • Badges
  • Banner
  • Breadcrumb
  • Buttons
  • Calendar
  • Cards
  • Carousel
  • Charts
  • Chip input
  • Collapsible
  • Color picker
  • Combobox
  • Command palette
  • Context menu
  • Copy button
  • Date picker
  • Drawer
  • Dropdown
  • Empty state
  • File upload
  • Footer
  • Forms
  • Hover card
  • Jumbotron
  • KBD
  • Menubar
  • Modal
  • Navbar
  • Navigation menu
  • Number input
  • OTP input
  • Pagination
  • Popover
  • Pricing
  • Progress
  • Rating
  • Resizable panels
  • Scroll area
  • Segmented control
  • Separator
  • Sidebar
  • Skeleton
  • Slider
  • Spinners
  • Stats
  • Stepper
  • Survey
  • Table
  • Tabs
  • Time picker
  • Timeline
  • Timer button
  • Toasts
  • Tooltip
  • Transfer list
  • Tree