Date Field
A segmented, keyboard-editable date input.
Overview
- Granularity:
granularityalso accepts"month"and"year"for month- or year-only fields. - Availability: values blocked by
minValue/maxValueorunavailableRangesmove to the nearest available date once the field loses focus, so typing is never interrupted. - `DateInput`: exported for composing date pickers.
Installation
CLI
Manual
- 1
Register the @fma-ds namespace in components.json (once)
- 2
Add the item
Files land in
components/fma-ds/date-field.tsx; npm and registry dependencies are installed along with them.
Dependencies
- npm
- @internationalized/date@^3.12.4cn@^0.5.0react-aria-components@^1.22.1
- Registry
- @fma-ds/use-available-date-correction@fma-ds/date-granularity@fma-ds/interval-helpers@fma-ds/types