return (
<div>
<label className="field-label">
Lable here should be set in the collection config
</label>
<DateTimeInput
path={path}
datePickerProps={{
overrides: {
highlightDates: options,
renderDayContents: renderDayContents,
},
pickerAppearance: "dayAndTime",
timeIntervals: 15,
timeFormat: "HH:mm",
displayFormat: "MMM d, yyyy HH:mm",
}}
value={value}
onChange={(e) => setValue(e)}
/>
</div>
);
As you can see in the Image the padding is somehow missing, and is there a way to pass the lable to the component with the collection config? And also set the field to required?
Star
Discord
online
Get help straight from the Payload team with an Enterprise License.