Skip to content
v0.2.10

DateTimePicker

A composed civil date and wall-clock time with separate form values.

Preview
Schedule

Use DateTimePicker

DateTimePicker is a named export of @flood-md/react. Connect the package once, then import what you use.

First time here? Connect Flood
Example import style
date-time-picker.tsxTSX
"use client";

import { FloodRoot, DateTimePicker } from "@flood-md/react";
import "@flood-md/react/styles.css";

export function Example() {
  return (
    <FloodRoot>
      <DateTimePicker label="Schedule" dateName="date" timeName="time" defaultValue={{date:"2026-10-26",time:"09:30"}} />
    </FloodRoot>
  );
}

Design notes

  • Date and time submit as separate fields. No timezone, UTC conversion or instant is inferred.
  • Date bounds and daily time bounds are independent. Use application validation for cross-field business rules.

API reference

PropValuesDefault
labelstringRequired
validationMessagestring—
timeIntervalnumber—
hideLabelboolean—
hideFieldLabelsboolean—
valueDateTimeValue—
defaultValueDateTimeValue—
onValueChange(value: DateTimeValue) => void—
dateLabelstring—
timeLabelstring—
dateNamestring—
timeNamestring—
formstring—
requiredboolean—
disabledboolean—
readOnlyboolean—
controlSize"sm" | "md" | "lg" | "xl"—
precision"minute" | "second"—
orderDateFieldProps["order"]—
localestring—
minDatestring—
maxDatestring—
minTimestring—
maxTimestring—
stepnumber—
status"error" | "warning" | "success" | "info"—
descriptionstring—
Native HTML propsOmit<HTMLAttributes<HTMLDivElement>, "children" | "defaultValue" | "onChange">Forwarded
View TypeScript source