Date Range Input
Date range selection with start/end text fields and calendar picker.
Generated from the package's public source.
API
DateRangeinterface
Props
endstringstartstring
DateRangeInputFieldPropsinterface
Props
class?stringonBlur?EventHandler<HTMLInputElement, FocusEvent>— Native blur event handler.onFocus?EventHandler<HTMLInputElement, FocusEvent>— Native focus event handler.style?string | CSSProperties
DateRangeInputRootPropsinterface
Props
class?stringdefaultEndDate?string— Default end date (uncontrolled).defaultStartDate?string— Default start date (uncontrolled).disabled?booleanendDate?string— Controlled end date (ISO format).format?string— Display format hint (default 'YYYY-MM-DD').id?string— Element id for the root container.invalid?booleanmax?string— Maximum allowed date (ISO format).min?string— Minimum allowed date (ISO format).name?string— Form field name prefix. Hidden inputs use name-start and name-end.onRangeChange?(range: DateRange) => void— Called when the date range changes.placeholder?{ … }— Placeholder text for start and end inputs.readOnly?booleanrequired?booleanstartDate?string— Controlled start date (ISO format).style?string | CSSProperties
children: Element
DateRangeInputSeparatorPropsinterface
Props
class?stringstyle?string | CSSProperties
children: Element
DateRangeInputTriggerPropsinterface
Props
aria-label?string— Accessible label for the trigger button.class?stringonClick?EventHandler<HTMLButtonElement, MouseEvent>— Click handler for opening a calendar popover.style?string | CSSProperties
children: Element
EndInputcomponent
EndInput(props: DateRangeInputFieldProps): Element
Props
class?stringonBlur?EventHandler<HTMLInputElement, FocusEvent>— Native blur event handler.onFocus?EventHandler<HTMLInputElement, FocusEvent>— Native focus event handler.style?string | CSSProperties
Rootcomponent
Root(props: DateRangeInputRootProps): Element
Props
class?stringdefaultEndDate?string— Default end date (uncontrolled).defaultStartDate?string— Default start date (uncontrolled).disabled?booleanendDate?string— Controlled end date (ISO format).format?string— Display format hint (default 'YYYY-MM-DD').id?string— Element id for the root container.invalid?booleanmax?string— Maximum allowed date (ISO format).min?string— Minimum allowed date (ISO format).name?string— Form field name prefix. Hidden inputs use name-start and name-end.onRangeChange?(range: DateRange) => void— Called when the date range changes.placeholder?{ … }— Placeholder text for start and end inputs.readOnly?booleanrequired?booleanstartDate?string— Controlled start date (ISO format).style?string | CSSProperties
children: Element
Separatorcomponent
Separator(props: DateRangeInputSeparatorProps): Element
Props
class?stringstyle?string | CSSProperties
children: Element
StartInputcomponent
StartInput(props: DateRangeInputFieldProps): Element
Props
class?stringonBlur?EventHandler<HTMLInputElement, FocusEvent>— Native blur event handler.onFocus?EventHandler<HTMLInputElement, FocusEvent>— Native focus event handler.style?string | CSSProperties
Triggercomponent
Trigger(props: DateRangeInputTriggerProps): Element
Props
aria-label?string— Accessible label for the trigger button.class?stringonClick?EventHandler<HTMLButtonElement, MouseEvent>— Click handler for opening a calendar popover.style?string | CSSProperties
children: Element