# react-editable-datetime-picker

> ## Install

Latest version **0.0.3** (published 2023-02-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-editable-datetime-picker
pnpm add react-editable-datetime-picker
yarn add react-editable-datetime-picker
bun add react-editable-datetime-picker
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2023-02-26 |
| First published | 2023-02-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 24.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | nappa |
| Maintainers | nappa |
| Keywords | react, datetimepicker, datepicker |

## Links

- npm: https://www.npmjs.com/package/react-editable-datetime-picker
- Repository: https://github.com/bebeji-nappa/react-editable-datetime-picker
- Homepage: https://github.com/bebeji-nappa/react-editable-datetime-picker#readme
- Issues: https://github.com/bebeji-nappa/react-editable-datetime-picker/issues
- npm.io page: https://npm.io/package/react-editable-datetime-picker

## Dependencies (4)

- [dayjs](https://npm.io/package/dayjs.md) ^1.11.7
- [react](https://npm.io/package/react.md) ^18.2.0
- [styled-components](https://npm.io/package/styled-components.md) ^5.3.6
- [babel-plugin-styled-components](https://npm.io/package/babel-plugin-styled-components.md) ^2.0.7

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.0.3 (latest) — 2023-02-26
- 0.0.2 — 2023-02-20

## README

# react-editable-datetime-picker

## Install

```bash
npm install react-editable-datetime-picker

# Use Yarn
yarn add react-editable-datetime-picker
```

## Usage

```jsx
import { useRef, useState } from "react"
import { DateTimePicker } from "react-editable-datetime-picker"

export default function Home() {
  const ref = useRef(null);
  return (
    <>
      <input ref={ref} type="text" defaultValue="" onFocus={() => setFocus(true)} />
      <DateTimePicker
        isTime={true}
        parentRef={ref}
        mainColor="#ff4545"
        currentTextColor="#fff"
        textColor="#000"
        outlineColor="#ff4545"
        backgroundColor="#ffdede"
        borderColor="#de6a6a"
      />
    </>
  )
}
```

### Props
|name|description|
|---|---|
|`isTime`|Set whether to display the time|
|`parentRef`|Set Ref to work with Picker|
|`mainColor`|Set main accent color|
|`currentTextColor`|Sets the text color to display the selected date|
|`textColor`|Sets the text color to display|
|`outlineColor`|Sets the outline color for entering the time|
|`backgroundColor`|Sets the background color of the datetimepicker|
|`borderColor`|Sets the border color of the datetimepicker|

---
_Source: https://npm.io/package/react-editable-datetime-picker · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
