Lucent UI
DatePickerDateRangePickerColorPicker
✦ LLM-ready

DateRangePicker

atom

Selects a start and end date from a calendar popover. Supports label, helperText, errorText, three sizes, and real-time range highlighting on hover. Returns a DateRange object with start/end Date values. Border-box sizing matches Input/Select.

"Add a DateRangePicker from lucent-ui to a filter bar. Bind it to a DateRange state and display the selected from/to dates below."

Usage

React / JSX
import { DateRangePicker } from 'lucent-ui'

<DateRangePicker placeholder="Select range" label="DateRangePicker" size="md" />

Installation

pnpm add lucent-ui

API Reference

DateRangePicker props — * required

PropTypeDefaultDescription
valueDateRangeControlled range with { start: Date; end: Date }.
defaultValueDateRangeUncontrolled initial range.
onChange(range: DateRange) => voidCalled with the selected range.
placeholderstring"Select range"Placeholder when no range is selected.
labelstringLabel displayed above the picker.
helperTextstringHint or description below the picker.
errorTextstringError message — triggers the error visual state with aria-invalid.
size"sm" | "md" | "lg""md"Height and font size — matches Input sizing.
disabledbooleanfalseDisables the input.
triggerReact.ReactNodeCustom trigger element replacing the default input-style button. Use with a Button for compact toolbar layouts.
minDateMinimum selectable date.
maxDateMaximum selectable date.
styleReact.CSSPropertiesInline styles for the wrapper.