Skip to content

DateRangePicker

stable

Date range selection with linked start/end inputs, automatic min/max constraints

Data EntryInteractive/Storybook ↗
import { DateRangePicker } from "@danagraph/design-system"
Loading demo…

Props

startValue
Type stringDefault —

Start date in YYYY-MM-DD

endValue
Type stringDefault —

End date in YYYY-MM-DD

onChange
Type (range: { start: string; end: string }) => voidDefault —

Range change handler

label
Type stringDefault —

Group label

error
Type stringDefault —

Error message

Accessibility

  • Uses role="group" with aria-labelledby for the paired inputs
  • Each sub-input has a visually-hidden label for screen readers
  • Start/end constraints enforced via min/max attributes
smmdlgsemantictypeinputborder
Design Rationale

This component was designed to express:

Explore Related

Was this helpful?