Time entry control.
<label class="tin" for="tin-1">
<span class="tin__label">Start time</span>
<input class="tin__input" id="tin-1" type="time" min="09:00" max="18:00" step="60" style="--accent:#F5C2E0;">
</label>
<style>
.tin { display: block; font: 14px system-ui, sans-serif; color: #241430; max-width: 180px; }
.tin__label { display: block; margin-bottom: 6px; font-weight: 500; }
.tin__input { width: 100%; box-sizing: border-box; padding: 10px 12px; font: inherit; color: #241430; background: #FAF7F2; border: 1.5px solid #24143040; border-radius: 8px; }
.tin__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-[180px] font-sans text-sm text-[#241430]" for="tin-tw-1">
<span class="block mb-1.5 font-medium">Start time</span>
<input id="tin-tw-1" type="time" min="09:00" max="18:00" step="60"
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:#F5C2E0;">
</label>export function TimeInput({
label = "Start time",
min = "09:00",
max = "18:00",
step = 60,
accent = "#F5C2E0",
}) {
return (
<label style={{ display: "block", maxWidth: 180, fontFamily: "system-ui, sans-serif", fontSize: 14, color: "#241430" }}>
<span style={{ display: "block", marginBottom: 6, fontWeight: 500 }}>{label}</span>
<input type="time" min={min} max={max} step={step} style={{
width: "100%", boxSizing: "border-box", padding: "10px 12px", font: "inherit", color: "#241430",
background: "#FAF7F2", border: `1.5px solid ${accent}`, borderRadius: 8,
}} />
</label>
);
}