Uai

formsdate-range-picker.tsx

Color theme

component · 25/108

Date Range Picker

Presets, date inputs, and a keyboard-navigable calendar for local date ranges.

Install

Install manuallyView source on GitHub

Anatomy

  • DateRangePicker
  • DateRangePickerInputs
  • DateRangePickerInput
  • DateRangePickerBody
  • DateRangePickerPresets
  • DateRangePickerPreset
  • DateRangePickerCalendar
  • DateRangePickerSummary
  • DateRangePickerClear

Accessibility3 checks

  • Arrow keys move by day or week; Home and End move to week boundaries; Page Up and Down change month, with Shift changing year. Enter or Space selects.
  • Dates are YYYY-MM-DD calendar dates without UTC conversion. The end cannot precede the start; min and max constrain presets, inputs, and calendar.
  • Native labeled date inputs provide a direct-entry alternative. Selection uses pressed day buttons and a live range summary. The example uses fixed release dates.
canvasvariant="card"forms
Forms and usability
September 2026
SunMonTueWedThuFriSat

Sep 7, 2026 to Sep 11, 2026

date range picker variant

Code example

usage.tsx
"use client";import {  DateRangePicker,  DateRangePickerBody,  DateRangePickerCalendar,  DateRangePickerClear,  DateRangePickerInput,  DateRangePickerInputs,  DateRangePickerPreset,  DateRangePickerPresets,  DateRangePickerSummary,  type DateRangePickerVariant,} from "@/components/ui/uai/date-range-picker";export function DateRangePickerPreview({ variant = "card" }: { variant?: DateRangePickerVariant }) {  return (    <DateRangePicker      variant={variant}      defaultValue={{ start: "2026-09-07", end: "2026-09-11" }}      min="2026-01-01"      max="2027-12-31"    >      <DateRangePickerInputs>        <DateRangePickerInput boundary="start" name="start" />        <DateRangePickerInput boundary="end" name="end" />      </DateRangePickerInputs>      <DateRangePickerBody>        <DateRangePickerPresets>          <DateRangePickerPreset value={{ start: "2026-09-07", end: "2026-09-11" }}>            Release week          </DateRangePickerPreset>          <DateRangePickerPreset value={{ start: "2026-09-01", end: "2026-09-30" }}>            September          </DateRangePickerPreset>        </DateRangePickerPresets>        <DateRangePickerCalendar />      </DateRangePickerBody>      <DateRangePickerSummary />      <DateRangePickerClear />    </DateRangePicker>  );}

Manual installation

date-range-picker.tsx

Loading component source…

esc
ThinkingAI
MessageAI
CitationAI
AttachmentAI
Tool CallAI
Response StatusAI
Run SummaryAI
Conversation ThreadAI · Block
Research SessionAI · Block
File AnalysisAI · Block
Agent RunAI · Block
Approval CardFeedback
Empty StateFeedback
Status BannerFeedback
Progress SummaryFeedback
Inline FeedbackFeedback
Confirmation DialogFeedback
Activity TimelineFeedback
Skeleton GroupFeedback
Prompt ComposerForms
Form FieldForms
Search FieldForms
Filter BarForms
File UploadForms
Date Range PickerForms
Form Error SummaryForms
Unsaved Changes BarForms
Step IndicatorForms
Task ListData Display
Data Table ToolbarData Display
Metric CardData Display
Description ListData Display
Comparison TableData Display
Kanban BoardData Display
Calendar ViewData Display
Audit LogData Display
App HeaderNavigation
App SidebarNavigation
Breadcrumb TrailNavigation
Page TabsNavigation
Command MenuNavigation
Split PaneNavigation
Sign-in CardAuthentication
Sign-up CardAuthentication
Password RecoveryAuthentication
Code VerificationAuthentication · Block
Onboarding WizardAuthentication · Block
Workspace SetupAuthentication · Block
Coupon FieldCommerce
Quantity PickerCommerce
Cart ItemCommerce
Price SummaryCommerce
Order StatusCommerce
Product DetailCommerce · Block
Product ListingCommerce · Block
Cart DrawerCommerce · Block
CheckoutCommerce · Block
Order TrackingCommerce · Block
Subscription ManagementCommerce · Block
Announcement BarMarketing
Pricing ToggleMarketing
Testimonial CardMarketing
Product GalleryMarketing
Trust PanelMarketing
Newsletter FormMarketing
Hero SectionMarketing · Block
Feature ShowcaseMarketing · Block
Pricing SectionMarketing · Block
Testimonials SectionMarketing · Block
FAQ SectionMarketing · Block
Call to ActionMarketing · Block
Waitlist SectionMarketing · Block
Contact SectionMarketing · Block
Author CardContent
CommentContent
Reaction BarContent
Share MenuContent
Changelog EntryContent
Article PageContent · Block
Documentation PageContent · Block
Changelog PageContent · Block
Comment ThreadContent · Block
Community FeedContent · Block
Public ProfileContent · Block
Map FrameMaps
Map ControlsMaps
Map MarkerMaps
Map LegendMaps
Place CardMaps
Route SummaryMaps
Dashboard ShellApplication · Block
Settings PageApplication · Block
Profile PageApplication · Block
Team ManagementApplication · Block
Notification CenterApplication · Block
Billing PortalApplication · Block
Search ResultsApplication · Block
Resource ManagerOperations · Block
Data ExplorerOperations · Block
Import WorkflowOperations · Block
Approval QueueOperations · Block
Audit Log ViewerOperations · Block
Incident DashboardOperations · Block
Report BuilderOperations · Block
Document FieldBrazil
CEP FieldBrazil
Pix PaymentBrazil
Installment PickerBrazil