Date Range Picker
A calendar that previews the range as you hover with a continuous tinted band between endpoint pills, month pages that slide in the direction you move, preset chips, full grid keyboard support and a live summary.
Try it: Click a start and end day, try a preset, or use arrows / PageUp / PageDown.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/date-range-picker.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/date-range-picker. You can also copy the source into components/ui/date-range-picker.tsx (view on GitHub).
Usage
import { DateRangePicker } from '@/components/ui/date-range-picker'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
value / defaultValue / onValueChange | { from: Date | null; to: Date | null } | last week | Controlled or uncontrolled range. |
today | Date | new Date() | Reference day. |
disableFuture / presets | boolean | true | Block future days; show preset chips. |
locale | string | browser | BCP 47 locale for labels. |
className | string | — | Extra classes merged onto the card. |
Dependencies
motionlucide-react
Related Product UI components
- Feedback State Panel
One surface for the screens nobody designs — empty, error, offline, permission and success — each with its own glyph and motion character, copy that names the next step, and a primary action with a…
- Sortable Data Table
A dense, quiet deployments table: sortable headers with aria-sort, search and status filter chips, rows that glide to their new order, hairline hover and selected tints, a bulk-action bar that…
- Keyboard Shortcut Hint
A cheat sheet of tactile keycaps that knows your platform (⌘ ⌥ ⇧ vs Ctrl Alt Shift); hold real keys and matching caps sink and light up, complete a combo and its row confirms. Exports Kbd for inline…
- Onboarding Stepper
A three-question setup flow on one continuous surface: a progress capsule stretches into the current step with a shared-layout spring, panels slide in the direction of travel, validation speaks…
- Inset Settings List
An iOS-style grouped inset list with tinted icon tiles, hairlines inset to the label edge, switches whose knob stretches on press, and choice rows that push a detail page with a parallax slide and…
- Usage Quota Meter
A billing-period usage card: hairline tracks fill with stacked segments on the house ease, figures count up in tabular numerals, a limit tick marks 100%, and bars go amber near the limit and rose…