Skip to content

Date field

Accepts a date, with one editable segment for each part.

Delivery date
6152026
date-field-demo.tsx

Installation

The CLI adds the files, packages, theme variables, and Tailwind plugin that this component uses. Before you run it, set up your project.

Minimum and maximum

A date outside the limits shows an error when the field loses focus.

Delivery date
6152026
Choose a date in June 2026.
date-field-limits-demo.tsx

Date and time

Pass a CalendarDateTime to add time segments. Set granularity to change the smallest one.

Event start
6152026930AM
date-field-time-demo.tsx

Disabled

Start date
612026
date-field-disabled-demo.tsx

Sizes

6152026
6152026
6152026
6152026
date-field-sizes-demo.tsx

API reference

vip/ui adds or changes the props below. For all other props, see React Aria DateField (opens in a new tab).

size: "xs" | "sm" | "md" | "lg" | "xl" = "lg"
Sets the size of the field.
label: string
Label above the field. Without a label, pass aria-label.
description: string
Help text below the field.