v0.3.1 StableFoundation ComponentReact 18 & 19Zero Runtime CSS

DatePicker

Native date entry and the browser's picker.

Interactive preview

Usage

import { DatePicker } from "@devvy-ui/react";

<DatePicker label="Start date" name="date" min="2026-01-01" required />

API reference

Native HTML attributes, className, style and a forwarded ref are supported. Component-specific props:

PropTypeDefaultDescription
labelstringrequiredAccessible input name.
native input propsInputHTMLAttributes—Value, constraints, events, ref and form semantics.

Accessibility & behavior

Platform Behavior & Guidelines

Native ISO value, min/max/step, form/reset and platform picker. Browser presentation varies; the library adds no custom overlay or time-zone conversion.

Source ownership

Run npx @devvy-ui/cli init once in your React project, then add the source:

npx @devvy-ui/cli add date-picker

Make the source yours.

Start from the canonical implementation used by the package and registry. Change the code, keep the MIT notice, and build the behavior your project needs.

DatePicker.tsxREACT / TSX

Edit your own copy. Downloaded source uses your changes; the component preview above uses the shipped version. Run the source installer first to include shared helpers.