Skip to content
ZikZuk UI

DateRangeFilter

Stripe DateRangePicker

A boxed “Date” control for a list's filter row: Today, Last 7 days, Last 30 days and This month, plus the kit calendar for a custom range. Future days are disabled unless you allow them. Pair it with an ActiveFilters chip using formatDateRange.

pnpm add @zikzuk/ui
import { DateRangeFilter, formatDateRange, type DateRange } from "@zikzuk/ui";

With its filter chip

When to use

  • Filtering a list by when something happened.

Not for

  • One date in a form — DateField.

Props

PropTypeDescription
value / onChangeDateRange / (range) => void{ from, to } as yyyy-MM-dd; "" is open.
presetsDatePreset[]
Default DATE_PRESETS
The quick choices.
allowFutureboolean
Default false
Allow days after today.
placeholderstring
Default "Any date"
Shown when no range is set.
classNamestringExtra classes on the outer element.