# @blaze-react/date-time-input

> Datepicker tools that wraps [react-datepicker](https://www.npmjs.com/package/react-datepicker).

Latest version **0.8.0-alpha.112** (published 2025-10-01) · GPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install @blaze-react/date-time-input
pnpm add @blaze-react/date-time-input
yarn add @blaze-react/date-time-input
bun add @blaze-react/date-time-input
```

## Health

**Score 35/100 (D)** — status: stable.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 0.8.0-alpha.112 |
| Published | 2025-10-01 |
| First published | 2020-12-10 |
| Weekly downloads | 0 |
| License | GPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.2 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | byte9 |
| Maintainers | marekb9, mcabrerapf, daoyong, grzegorzi, ishrat, andypail, tanane |

## Links

- npm: https://www.npmjs.com/package/@blaze-react/date-time-input
- npm.io page: https://npm.io/package/@blaze-react/date-time-input

## Dependencies (1)

- [@blaze-react/tooltip](https://npm.io/package/@blaze-react/tooltip.md) ^0.8.0-alpha.112

## Recent versions

- 0.8.0-alpha.112 (latest) — 2025-10-01
- 0.8.0-alpha.120 (alpha) — 2026-10-12
- 0.8.0-alpha.119 — 2026-10-06
- 0.8.0-alpha.117 — 2026-03-11
- 0.8.0-alpha.115 — 2026-02-23
- 0.8.0-alpha.114 — 2026-01-08
- 0.8.0-alpha.110 — 2025-09-10
- 0.8.0-alpha.103 — 2025-07-07
- 0.8.0-alpha.102 — 2025-07-01
- 0.8.0-alpha.101 — 2025-06-27
- 0.8.0-alpha.100 — 2025-02-26
- 0.8.0-alpha.98 — 2024-11-27
- 0.8.0-alpha.97 — 2024-11-21
- 0.8.0-alpha.96 — 2024-11-21
- 0.8.0-alpha.95 — 2024-11-21
- … 49 more at https://npm.io/package/@blaze-react/date-time-input/versions

## README

## Description

Datepicker tools that wraps [react-datepicker](https://www.npmjs.com/package/react-datepicker).

## Note about importing

This component requires its consumers to manually import the third-party library's CSS

```typescript
import 'react-datepicker/dist/react-datepicker.css';
```

## Usage

- Required

```js
<DateTimeInput
  label="Date Time input required"
  onChange={({ event, value }) => {}}
  type="dateTime"
  modifier="full-width"
  validationMessage="Date Time is required"
  error
  required
/>
```

- Disabled

```js
<DateTimeInput
  label="Date Time input disabled"
  onChange={({ event, value }) => {}}
  type="dateTime"
  modifier="full-width"
  validationMessage="Date Time is disabled"
  error
  disabled
/>
```

- Pick only date

```js
<DateTimeInput label="Date input" onChange={({ event, value }) => {}} type="date" modifier="full-width" />
```

- Pick only time

```js
<DateTimeInput label="Date input" onChange={({ event, value }) => {}} type="time" modifier="full-width" />
```

## API

##### DateTimeInput can receive a number of `props` as follow:

| NAME              |             TYPE             |        DEFAULT         |
| :---------------- | :--------------------------: | :--------------------: |
| label             |            String            |         empty          |
| type              | ['dateTime', 'date', 'time'] |        dateTime        |
| value             |            String            |         empty          |
| validationMessage |            String            | This field is required |
| disabled          |           Boolean            |         false          |
| required          |           Boolean            |         false          |
| error             |           Boolean            |         false          |
| onChange          |           Function           |        () => {}        |

## onChange events

The raw onChange events are inconsistent from the underlying component and when using the today button so the component makes sure to set the the following props on an `event.target`

- name: uses the component id prop
- value: the date from the event

---
_Source: https://npm.io/package/@blaze-react/date-time-input · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
