Component docs
Loading
"use client";
import { DateRangePicker } from "@pixxl-tools/components";| Prop | Type | Default | Description |
|---|---|---|---|
value | DateRangeValue | — | Current value (controlled); null where it means "nothing selected". |
defaultValue | DateRangeValue | — | Initial value when uncontrolled. |
endLabel | string | — | — |
onValueChange | (value: DateRangeValue) => void | — | Called with the new value (only when it changes). |
startLabel | string | — | — |
valueDateRangeValue
Current value (controlled); null where it means "nothing selected".
defaultValueDateRangeValue
Initial value when uncontrolled.
endLabelstring
onValueChange(value: DateRangeValue) => void
Called with the new value (only when it changes).
startLabelstring
Other props are passed to the root element (HTMLAttributes<HTMLDivElement>), including className, style, id and aria-* attributes.
const range = { start: "2026-07-01", end: "2026-07-14" };
<DateRangePicker value={range} />