Skip to content

Date Input

Free

The row of date and time parts inside Date Field, Time Field, and the pickers. You type each part or move it with the arrow keys.

  • React Aria
  • React 19
  • Tailwind CSS 4

Added Nov 8, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Put the Date Input in a Date Input Group with an icon add-on, inside a Date Field that owns the value.

The sample also uses Date Field. One command adds them with this item:

departure-date.tsx

DateInputSegment

PropTypeDefaultDescription
dirstring—
langstring—
hiddenboolean—
inertboolean—
translate"no""yes"—
suppressHydrationWarningboolean—A React-only flag that suppresses the warning React normally logs when an element's server-rendered content doesn't match the client render during hydration. See React docs.
onClickMouseEventHandler<HTMLSpanElement>—
onClickCaptureMouseEventHandler<HTMLSpanElement>—
onAuxClickMouseEventHandler<HTMLSpanElement>—
onAuxClickCaptureMouseEventHandler<HTMLSpanElement>—
onContextMenuMouseEventHandler<HTMLSpanElement>—
onContextMenuCaptureMouseEventHandler<HTMLSpanElement>—
onDoubleClickMouseEventHandler<HTMLSpanElement>—
onDoubleClickCaptureMouseEventHandler<HTMLSpanElement>—
onMouseDownMouseEventHandler<HTMLSpanElement>—
onMouseDownCaptureMouseEventHandler<HTMLSpanElement>—
onMouseEnterMouseEventHandler<HTMLSpanElement>—
onMouseLeaveMouseEventHandler<HTMLSpanElement>—
onMouseMoveMouseEventHandler<HTMLSpanElement>—
onMouseMoveCaptureMouseEventHandler<HTMLSpanElement>—
onMouseOutMouseEventHandler<HTMLSpanElement>—
onMouseOutCaptureMouseEventHandler<HTMLSpanElement>—
onMouseOverMouseEventHandler<HTMLSpanElement>—
onMouseOverCaptureMouseEventHandler<HTMLSpanElement>—
onMouseUpMouseEventHandler<HTMLSpanElement>—
onMouseUpCaptureMouseEventHandler<HTMLSpanElement>—
onTouchCancelTouchEventHandler<HTMLSpanElement>—
onTouchCancelCaptureTouchEventHandler<HTMLSpanElement>—
onTouchEndTouchEventHandler<HTMLSpanElement>—
onTouchEndCaptureTouchEventHandler<HTMLSpanElement>—
onTouchMoveTouchEventHandler<HTMLSpanElement>—
onTouchMoveCaptureTouchEventHandler<HTMLSpanElement>—
onTouchStartTouchEventHandler<HTMLSpanElement>—
onTouchStartCaptureTouchEventHandler<HTMLSpanElement>—
onPointerDownPointerEventHandler<HTMLSpanElement>—
onPointerDownCapturePointerEventHandler<HTMLSpanElement>—
onPointerMovePointerEventHandler<HTMLSpanElement>—
onPointerMoveCapturePointerEventHandler<HTMLSpanElement>—
onPointerUpPointerEventHandler<HTMLSpanElement>—
onPointerUpCapturePointerEventHandler<HTMLSpanElement>—
onPointerCancelPointerEventHandler<HTMLSpanElement>—
onPointerCancelCapturePointerEventHandler<HTMLSpanElement>—
onPointerEnterPointerEventHandler<HTMLSpanElement>—
onPointerLeavePointerEventHandler<HTMLSpanElement>—
onPointerOverPointerEventHandler<HTMLSpanElement>—
onPointerOverCapturePointerEventHandler<HTMLSpanElement>—
onPointerOutPointerEventHandler<HTMLSpanElement>—
onPointerOutCapturePointerEventHandler<HTMLSpanElement>—
onGotPointerCapturePointerEventHandler<HTMLSpanElement>—
onGotPointerCaptureCapturePointerEventHandler<HTMLSpanElement>—
onLostPointerCapturePointerEventHandler<HTMLSpanElement>—
onLostPointerCaptureCapturePointerEventHandler<HTMLSpanElement>—
onScrollUIEventHandler<HTMLSpanElement>—
onScrollCaptureUIEventHandler<HTMLSpanElement>—
onWheelWheelEventHandler<HTMLSpanElement>—
onWheelCaptureWheelEventHandler<HTMLSpanElement>—
onAnimationStartAnimationEventHandler<HTMLSpanElement>—
onAnimationStartCaptureAnimationEventHandler<HTMLSpanElement>—
onAnimationEndAnimationEventHandler<HTMLSpanElement>—
onAnimationEndCaptureAnimationEventHandler<HTMLSpanElement>—
onAnimationIterationAnimationEventHandler<HTMLSpanElement>—
onAnimationIterationCaptureAnimationEventHandler<HTMLSpanElement>—
onTransitionCancelTransitionEventHandler<HTMLSpanElement>—
onTransitionCancelCaptureTransitionEventHandler<HTMLSpanElement>—
onTransitionEndTransitionEventHandler<HTMLSpanElement>—
onTransitionEndCaptureTransitionEventHandler<HTMLSpanElement>—
onTransitionRunTransitionEventHandler<HTMLSpanElement>—
onTransitionRunCaptureTransitionEventHandler<HTMLSpanElement>—
onTransitionStartTransitionEventHandler<HTMLSpanElement>—
onTransitionStartCaptureTransitionEventHandler<HTMLSpanElement>—
onHoverStart—Handler that is called when a hover interaction starts.
onHoverEnd—Handler that is called when a hover interaction ends.
onHoverChange—Handler that is called when the hover state changes.
styleStyleOrFunction<DateSegmentRenderProps>—The inline style for the element. A function may be provided to compute the style based on component state.
children—The children of the component. A function may be provided to alter the children based on component state.
render—Overrides the default DOM element with a custom render function. This allows rendering existing components with built-in styles and behaviors such as router links, animation libraries, and pre-styled components. Requirements: - You must render the expected element type (e.g. if <button> is expected, you cannot render an <a>). - Only a single root DOM element can be rendered (no fragments). - You must pass through props and ref to the underlying DOM element, merging with your own prop as appropriate.
segmentRequiredDateSegment—
classNamestring—

DateInput

PropTypeDefaultDescription
dirstring—
langstring—
hiddenboolean—
inertboolean—
translate"no""yes"—
suppressHydrationWarningboolean—A React-only flag that suppresses the warning React normally logs when an element's server-rendered content doesn't match the client render during hydration. See React docs.
onClickMouseEventHandler<HTMLDivElement>—
onClickCaptureMouseEventHandler<HTMLDivElement>—
onAuxClickMouseEventHandler<HTMLDivElement>—
onAuxClickCaptureMouseEventHandler<HTMLDivElement>—
onContextMenuMouseEventHandler<HTMLDivElement>—
onContextMenuCaptureMouseEventHandler<HTMLDivElement>—
onDoubleClickMouseEventHandler<HTMLDivElement>—
onDoubleClickCaptureMouseEventHandler<HTMLDivElement>—
onMouseDownMouseEventHandler<HTMLDivElement>—
onMouseDownCaptureMouseEventHandler<HTMLDivElement>—
onMouseEnterMouseEventHandler<HTMLDivElement>—
onMouseLeaveMouseEventHandler<HTMLDivElement>—
onMouseMoveMouseEventHandler<HTMLDivElement>—
onMouseMoveCaptureMouseEventHandler<HTMLDivElement>—
onMouseOutMouseEventHandler<HTMLDivElement>—
onMouseOutCaptureMouseEventHandler<HTMLDivElement>—
onMouseOverMouseEventHandler<HTMLDivElement>—
onMouseOverCaptureMouseEventHandler<HTMLDivElement>—
onMouseUpMouseEventHandler<HTMLDivElement>—
onMouseUpCaptureMouseEventHandler<HTMLDivElement>—
onTouchCancelTouchEventHandler<HTMLDivElement>—
onTouchCancelCaptureTouchEventHandler<HTMLDivElement>—
onTouchEndTouchEventHandler<HTMLDivElement>—
onTouchEndCaptureTouchEventHandler<HTMLDivElement>—
onTouchMoveTouchEventHandler<HTMLDivElement>—
onTouchMoveCaptureTouchEventHandler<HTMLDivElement>—
onTouchStartTouchEventHandler<HTMLDivElement>—
onTouchStartCaptureTouchEventHandler<HTMLDivElement>—
onPointerDownPointerEventHandler<HTMLDivElement>—
onPointerDownCapturePointerEventHandler<HTMLDivElement>—
onPointerMovePointerEventHandler<HTMLDivElement>—
onPointerMoveCapturePointerEventHandler<HTMLDivElement>—
onPointerUpPointerEventHandler<HTMLDivElement>—
onPointerUpCapturePointerEventHandler<HTMLDivElement>—
onPointerCancelPointerEventHandler<HTMLDivElement>—
onPointerCancelCapturePointerEventHandler<HTMLDivElement>—
onPointerEnterPointerEventHandler<HTMLDivElement>—
onPointerLeavePointerEventHandler<HTMLDivElement>—
onPointerOverPointerEventHandler<HTMLDivElement>—
onPointerOverCapturePointerEventHandler<HTMLDivElement>—
onPointerOutPointerEventHandler<HTMLDivElement>—
onPointerOutCapturePointerEventHandler<HTMLDivElement>—
onGotPointerCapturePointerEventHandler<HTMLDivElement>—
onGotPointerCaptureCapturePointerEventHandler<HTMLDivElement>—
onLostPointerCapturePointerEventHandler<HTMLDivElement>—
onLostPointerCaptureCapturePointerEventHandler<HTMLDivElement>—
onScrollUIEventHandler<HTMLDivElement>—
onScrollCaptureUIEventHandler<HTMLDivElement>—
onWheelWheelEventHandler<HTMLDivElement>—
onWheelCaptureWheelEventHandler<HTMLDivElement>—
onAnimationStartAnimationEventHandler<HTMLDivElement>—
onAnimationStartCaptureAnimationEventHandler<HTMLDivElement>—
onAnimationEndAnimationEventHandler<HTMLDivElement>—
onAnimationEndCaptureAnimationEventHandler<HTMLDivElement>—
onAnimationIterationAnimationEventHandler<HTMLDivElement>—
onAnimationIterationCaptureAnimationEventHandler<HTMLDivElement>—
onTransitionCancelTransitionEventHandler<HTMLDivElement>—
onTransitionCancelCaptureTransitionEventHandler<HTMLDivElement>—
onTransitionEndTransitionEventHandler<HTMLDivElement>—
onTransitionEndCaptureTransitionEventHandler<HTMLDivElement>—
onTransitionRunTransitionEventHandler<HTMLDivElement>—
onTransitionRunCaptureTransitionEventHandler<HTMLDivElement>—
onTransitionStartTransitionEventHandler<HTMLDivElement>—
onTransitionStartCaptureTransitionEventHandler<HTMLDivElement>—
styleStyleOrFunction<DateInputRenderProps>—The inline style for the element. A function may be provided to compute the style based on component state.
slotstring | null—A slot name for the component. Slots allow the component to receive props from a parent component. An explicit null value indicates that the local props completely override all props received from a parent.
render—Overrides the default DOM element with a custom render function. This allows rendering existing components with built-in styles and behaviors such as router links, animation libraries, and pre-styled components. Requirements: - You must render the expected element type (e.g. if <button> is expected, you cannot render an <a>). - Only a single root DOM element can be rendered (no fragments). - You must pass through props and ref to the underlying DOM element, merging with your own prop as appropriate.
classNamestring—
children—The segment for each part of the date. Leave it out for one DateInputSegment per part, or render your own: {(segment) => <DateInputSegment segment={segment} className="…" />}.
size"default""lg""sm"—The height of a plain input (28, 32, 36). Inside a DateInputGroup, the group sets it.
refRef<HTMLDivElement>—

DateInputGroup

<div>
PropTypeDefaultDescription
classNamestring—
rounded"default""full"—
variant"dashed""default"—
size"default""lg""sm""default"
readOnlyboolean—Read-only: the muted frame with no hover. Inside a DateField or TimeField the group reads it from the field; set it in a picker, which has no field state above the group.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Use DateInput inside a DateField, a TimeField, or a picker. It reads the value and the segments from there.
  • Use DateInputGroup to add an icon, a time zone text, a clear button, or the button of a picker.
  • Pass a function as children to render your own DateInputSegment.
  • For a full date control with a label, help text, and an error, use a Date Field.
  • For a full time control with a label, help text, and an error, use a Time Field.
TabMoves focus to the next segment. Each editable segment is a tab stop.
Left ArroworRight ArrowMoves focus to the segment before or after.
Up ArroworDown ArrowMakes the value of the segment one step higher or lower.
Page UporPage DownChanges the value of the segment by a larger step.
HomeorEndSets the lowest or the highest value of the segment.
DigitsTypes the value of the segment.
BackspaceorDeleteRemoves a digit or clears the segment.

Each segment is a spin button with its own name, such as month or year. The parent field names the group.

Each editable segment is a tab stop. The fixed text between segments takes no focus.

On a coarse pointer, hit-area grows the target to 44px. The size on the screen stays the same.

Built with

Installs with Date Input

Components
Input Group
  1. AddedDate Input, with Input Group.
Open the release