Date Picker

The DatePicker component provides a styled date input with labels, validation text, and native picker access.

Usage & Examples

Release Date

Choose a date in the current release window.

release-date.tsx
<DatePicker
  label="Release date"
  defaultValue="2026-05-20"
  min="2026-05-01"
  helperText="Choose a date in the current release window."
/>

Props API

40 props
Columns
Date Picker props API
Default
Description
autoCompleteReact.HTMLInputAutoCompleteAttributeNoprops"off"Optional autocomplete value.
buttonClassNamestringNopropsAdditional class name for the picker trigger button.
classNamestringNostylingAdditional class name for the component root.
containerClassNamestringNopropsAdditional class name for the outer label/component container.
data-testidstringNotestingBackward-compatible alias for test ID attributes.
defaultValuestringNopropsInitial date value in YYYY-MM-DD format for uncontrolled usage.
descriptionReactNodeNopropsSupporting description connected with aria-describedby.
descriptionClassNamestringNopropsAdditional class name for description text.
disabledbooleanNopropsfalseWhether the component is disabled.
errorReactNodeNopropsError text connected with aria-errormessage and announced as an alert.
errorClassNamestringNopropsAdditional class name for error text.
fullWidthbooleanNopropsfalseWhether the picker should stretch to the full available width.