BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/shadcn-htmx/date-time-picker

Date Time Picker

shadcn-htmx/date-time-picker
FreeComponent

Native <input type="date|time|datetime-local|month|week"> family styled like Input, with min/max/step constraints and normalized machine-readable values. The browser supplies the calendar/clock picker, segment editing, locale-aware display and constraint validation — no JS calendar library. Ships in five flavours.

Live preview

live · rendered by the registry
Rendered by shadcn-htmx on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://shadcn-htmx.productdevbook.com/r/date-time-picker.json

Source

registry/ui/date-time-picker.tsxshadcn-htmx.productdevbook.com/r/date-time-picker.json
1/** @jsxImportSource hono/jsx */
2import { cn, type ClassValue } from "@/registry/lib/cn"
3
4// Date Time Picker — shadcn-htmx, htmx v4 + Tailwind v4.
5//
6// A family of native temporal fields. The control IS a real
7// <input type="date|time|datetime-local|month|week"> — there is no JS calendar
8// library and no userland popup. The browser ships the picker UI, the keyboard
9// editing of each segment, locale-aware display, and constraint validation; we
10// only restyle to match the rest of the form controls.
11//
12// Per MDN every variant normalises its submitted value to a fixed,
13// machine-readable, locale-independent format regardless of how it is shown:
14// - date → "yyyy-mm-dd" step is days (default 1)
15// - time → "HH:mm" / "HH:mm:ss" step is seconds (default 60);
16// min/max have a *periodic domain* (may cross midnight)
17// - datetime-local → "yyyy-mm-ddTHH:mm" (a local date + time, no zone)
18// - month → "YYYY-MM"
19// - week → "yyyy-Www" (ISO 8601 week number)
20//
21// Sources read for this component:
22// repos/mdn/files/en-us/web/html/reference/elements/input/date/index.md
23// repos/mdn/files/en-us/web/html/reference/elements/input/time/index.md
24// repos/mdn/files/en-us/web/html/reference/elements/input/datetime-local/index.md
25// repos/mdn/files/en-us/web/html/reference/elements/input/month/index.md
26// repos/mdn/files/en-us/web/html/reference/elements/input/week/index.md
27// htmx attrs verified against repos/htmx/www/reference.md
28// Style analogue: registry/ui/input.tsx (same base + tokens, kept in sync).
29
30export type DateTimeType = "date" | "time" | "datetime-local" | "month" | "week"
31
32// Shared <Input> base — kept byte-for-byte in sync with registry/ui/input.tsx
33// so a temporal field looks identical to every other control. We append rules
34// to tame the engine-specific picker affordances:
35// - the calendar/clock indicator inherits the foreground colour and shows a
36// pointer cursor (it is the only chrome the browser exposes to CSS);
37// - the inner spin/edit fields drop their padding so the value sits flush.
38const base =
39 "flex h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none " +
40 "selection:bg-primary selection:text-primary-foreground " +
41 "placeholder:text-muted-foreground " +
42// … truncated

Facts

Registry
shadcn-htmx
Type
registry:ui
Access
Free
Files written
0
Licence
MIT
In the index
at or before 2026-08-13
Last confirmed
today

Go to the source

Docs on shadcn-htmx shadcn-htmx.productdevbook.com productdevbook/shadcn-htmx on GitHub Raw registry item This item as JSON

More from shadcn-htmx

All 83 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Accordionaccordionshadcn-htmxComponentsFreeno deps
Active Searchactive-searchshadcn-htmxComponentsFreeno deps
Alertalertshadcn-htmxComponentsFreeno deps
Alert Dialogalert-dialogshadcn-htmxComponentsFreeno deps
Aspect Ratioaspect-ratioshadcn-htmxComponentsFreeno deps
Auto Gridauto-gridshadcn-htmxComponentsFreeno deps
Autocompleteautocompleteshadcn-htmxComponentsFreeno deps
Autosize Textareaautosize-textareashadcn-htmxComponentsFreeno deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex