Hextech UI

Date & Time Fields

Live example

Date & Time Fields

Installation

Terminal
npx shadcn@latest add https://hextech-ui.vercel.app/r/date-field.json

API reference

These are the main Date & Time Fields options. See the exported TypeScript types for inherited native or primitive props.

PropTypeDefault
labelstring (required)—
value / defaultValueISO date or local HH:mm string—
validationMessagestring—

Dates and times

DateField uses ISO day strings; TimeField uses HH:mm strings. Native segment appearance follows the browser and locale. Use value and onValueChange for controlled editing. Supply validationMessage for an external error; keep the visible label and description.