Configuration object
A JSX element representing the date field component
Basic usage with required props
dateField({
name: 'birthDate',
label: 'Birth Date',
type: 'date'
});
Usage with default value
dateField({
name: 'appointmentDate',
label: 'Appointment Date',
type: 'datetime-local',
defaultValue: '2024-01-15T10:00',
placeholder: 'Select appointment date and time',
required: true,
disabled: false
});
Creates a date field component for date input.