Skip to content

DateRange

stable

Locale-aware date range for settlement windows and reporting periods

import { DateRange } from "@nodus/design-system/finance"
Loading demo…

Props

startrequired
Type string | DateDefault

Start date (ISO string or Date)

endrequired
Type string | DateDefault

End date (ISO string or Date)

formatStyle
Type "short" | "medium" | "long"Default "medium"

Date format style

separator
Type stringDefault " — "

Separator between dates

locale
Type stringDefault

BCP 47 locale override

density
Type "default" | "compact"Default

Display density

Metadatashortmediumlongsemantictype
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?