042
Pick a range from two months side by side or a one-click preset, watch it preview as you hover, and line it up against the period before with a single tap.
akadate range picker·presets
Run this in any project set up for the shadcn CLI. It copies the Range Calendar source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/range-calendar.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { RangeCalendar } from "@/components/range-calendar";
export default function Page() {
return <RangeCalendar />;
}A free React component in the Forms collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Range Calendar source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| defaultValue | DateRange | — |
| presets | DatePreset[] | defaultPresets |
| disableFuture | boolean | true |
| defaultCompare | boolean | false |
| onApply | (range: DateRange, compareTo: DateRange | null) => void | — |
| onCancel | () => void | — |
| today | Date | — |
| className | string | — |