Components
Calendar
Month-grid date calendar (react-day-picker) supporting single, multiple, or range selection.
Installation
npx shadcn@latest add https://ui.saasflare.io/r/calendar.jsonpnpm add @saasflare/uiUsage
Loading…
"use client"import { useState } from "react"import { Calendar } from "@saasflare/ui/calendar"/** A single-date calendar grid with month navigation. */export function Demo() { const [date, setDate] = useState<Date | undefined>(new Date()) return ( <Calendar mode="single" selected={date} onSelect={setDate} className="rounded-md border" /> )}Multiple
Loading…
"use client"import { useState } from "react"import { Calendar } from "@saasflare/ui/calendar"/** Selecting several individual dates with mode="multiple". */export function Demo() { const [dates, setDates] = useState<Date[] | undefined>([]) return ( <Calendar mode="multiple" selected={dates} onSelect={setDates} className="rounded-md border" /> )}API Reference
Calendar
Prop
Type
CalendarDayButton
Prop
Type