DateRange
stableLocale-aware date range for settlement windows and reporting periods
import { DateRange } from "@nodus/design-system/finance"Loading demo…
Props
| Prop | Type | Default | Description |
|---|---|---|---|
startreq | string | Date | — | Start date (ISO string or Date) |
endreq | string | Date | — | End date (ISO string or Date) |
formatStyle | "short" | "medium" | "long" | "medium" | Date format style |
separator | string | " — " | Separator between dates |
locale | string | — | BCP 47 locale override |
density | "default" | "compact" | — | Display density |
startrequiredType
string | DateDefault —Start date (ISO string or Date)
endrequiredType
string | DateDefault —End date (ISO string or Date)
formatStyleType
"short" | "medium" | "long"Default "medium"Date format style
separatorType
stringDefault " — "Separator between dates
localeType
stringDefault —BCP 47 locale override
densityType
"default" | "compact"Default —Display density
MobileWorks As-Is
Date range display is read-only — works at any width. For interactive date range pickers, see the date-range-picker pattern.
Design Rationale
This component was designed to express:
Explore Related
Was this helpful?