Combined date and time selector.
<label class="dtp" for="dtp-1">
<span class="dtp__label">Meeting starts</span>
<input class="dtp__input" id="dtp-1" type="datetime-local" min="2026-08-18T09:00" max="2026-08-18T18:00" style="--accent:#BFD9F2;" autocomplete="off">
</label>
<style>
.dtp { display: block; font: 14px system-ui, sans-serif; color: #241430; max-width: 260px; }
.dtp__label { display: block; margin-bottom: 6px; font-weight: 500; }
.dtp__req { color: #241430; }
.dtp__input { width: 100%; box-sizing: border-box; padding: 10px 12px; font: inherit; color: #241430; background: #FAF7F2; border: 1.5px solid #24143040; border-radius: 8px; }
.dtp__input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
</style><label class="block max-w-[260px] font-sans text-sm text-[#241430]" for="dtp-tw-1">
<span class="block mb-1.5 font-medium">Meeting starts</span>
<input id="dtp-tw-1" type="datetime-local" min="2026-08-18T09:00" max="2026-08-18T18:00" autocomplete="off"
class="w-full box-border px-3 py-2.5 bg-[#FAF7F2] border-[1.5px] border-[#24143040] rounded-lg focus-visible:outline-none" style="border-color:#BFD9F2;">
</label>export function DateTimePicker({
label = "Meeting starts",
min = "2026-08-18T09:00",
max = "2026-08-18T18:00",
accent = "#BFD9F2",
required = false,
}) {
return (
<label style={{ display: "block", maxWidth: 260, fontFamily: "system-ui, sans-serif", fontSize: 14, color: "#241430" }}>
<span style={{ display: "block", marginBottom: 6, fontWeight: 500 }}>{label}{required && " *"}</span>
<input type="datetime-local" min={min} max={max} required={required} autoComplete="off" style={{
width: "100%", boxSizing: "border-box", padding: "10px 12px", font: "inherit", color: "#241430",
background: "#FAF7F2", border: `1.5px solid ${accent}`, borderRadius: 8,
}} />
</label>
);
}