FilterDateRange
moleculeDate range filter button that opens a calendar popover. Shows the selected range on the trigger label. Outline variant auto-switches to secondary when a range is selected.
Default
Button trigger that opens a calendar popover for range selection.
Sizes
Three sizes matching the filter family.
Usage
Installation
API Reference
FilterDateRange props — * required
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | — | Label shown on the trigger when no range is selected. |
value | DateRange | — | Controlled range with { start: Date; end: Date }. |
defaultValue | DateRange | — | Initial range for uncontrolled usage. |
onChange | (range: DateRange) => void | — | Called with the selected range. |
variant | "secondary" | "outline" | "secondary" | Trigger style. Outline auto-switches to secondary when a range is selected. |
size | "sm" | "md" | "lg" | "md" | Trigger and calendar size. |
min | Date | — | Minimum selectable date. |
max | Date | — | Maximum selectable date. |
disabled | boolean | false | Disables the trigger. |
style | React.CSSProperties | — | Inline styles for the wrapper. |