Kinetic UI
Back to Introduction
Forms

Date Range Picker

A popover calendar component for selecting a date range.

Quick Actions
CLI Installation
npx kinetic-ui-cli@latest add date-range-picker
Date Range Picker

Installation

npx kinetic-ui-cli@latest add date-range-picker

Overview

A robust date range picker built on top of react-day-picker and our standard Popover primitive. It inherits the global theme and CSS variables.

Usage Guide

1. Import the Component

Import the component into your React or Next.js page:

import { DateRangePicker } from "@/components/ui/date-range-picker";

2. Implementation Example

Render the component and customize its behavior by passing props:

import { DateRangePicker } from "@/components/ui/date-range-picker";

export default function Example() {
  return (
    <div className="w-full flex items-center justify-center p-8">
      <DateRangePicker
        date{/* value */}
        onDateChange{/* value */}
        placeholder="example"
      />
    </div>
  );
}
Performance Notes
  • Uses CSS hardware acceleration via GPU transform-binds.
  • Damped interpolation minimizes paint-redraw flashes.
  • Tree-shakable import: only compiles elements requested.
Accessibility Notes
  • Full keyboard focus-ring navigation support (`Tab`/`Shift+Tab`).
  • ARIA roles mapped correctly for assistive screen readers.
  • Respects `prefers-reduced-motion` system toggles.