# DateTimePicker

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

Connect Flood once using [the installation guide](https://flood.md/docs/installation). Then import the components you use; no per-component add command is needed.

## Example

```tsx
"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

| Prop | Values | Default |
| --- | --- | --- |
| `label` | `string` | `Required` |
| `validationMessage` | `string` | `—` |
| `timeInterval` | `number` | `—` |
| `hideLabel` | `boolean` | `—` |
| `hideFieldLabels` | `boolean` | `—` |
| `value` | `DateTimeValue` | `—` |
| `defaultValue` | `DateTimeValue` | `—` |
| `onValueChange` | `(value: DateTimeValue) => void` | `—` |
| `dateLabel` | `string` | `—` |
| `timeLabel` | `string` | `—` |
| `dateName` | `string` | `—` |
| `timeName` | `string` | `—` |
| `form` | `string` | `—` |
| `required` | `boolean` | `—` |
| `disabled` | `boolean` | `—` |
| `readOnly` | `boolean` | `—` |
| `controlSize` | `"sm" \| "md" \| "lg" \| "xl"` | `—` |
| `precision` | `"minute" \| "second"` | `—` |
| `order` | `DateFieldProps["order"]` | `—` |
| `locale` | `string` | `—` |
| `minDate` | `string` | `—` |
| `maxDate` | `string` | `—` |
| `minTime` | `string` | `—` |
| `maxTime` | `string` | `—` |
| `step` | `number` | `—` |
| `status` | `"error" \| "warning" \| "success" \| "info"` | `—` |
| `description` | `string` | `—` |
| `Native HTML props` | `Omit<HTMLAttributes<HTMLDivElement>, "children" \| "defaultValue" \| "onChange">` | `Forwarded` |
