Import
import { Field } from '@dnb/eufemia/extensions/forms'render(<Field.DateOfBirth />)
Description
Field.DateOfBirth is a wrapper component for the input of strings, with user experience tailored for date of birth values.
There is a corresponding Value.DateOfBirth component.
It supports the HTML autocomplete attribute, and by default set it to bday-day for the day field, bday-month for the month field, and to bday-year for the year field.
Relevant links
Validators
Internal validators exposed
Field.DateOfBirth expose the dateOfBirthValidator validator through its onChangeValidator and onBlurValidator property, take a look at this demo.
The dateOfBirthValidator validator, validates if the date provided is a valid date or not.