Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Missing padding on custom component

default discord avatar
banks0last year
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 on GitHub

    Star

    Chat on Discord

    Discord

    online

    Can't find what you're looking for?

    Get dedicated engineering support directly from the Payload team.