# react-responsive-datepicker-zain

> A datepicker made for react projects. Easy to use, easy to custom, mobile friendly.

Latest version **2.0.0** (published 2023-11-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-responsive-datepicker-zain
pnpm add react-responsive-datepicker-zain
yarn add react-responsive-datepicker-zain
bun add react-responsive-datepicker-zain
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2023-11-22 |
| First published | 2023-11-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 0 |
| Unpacked size | 74 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | zaykhere |
| Maintainers | zaykhere |

## Links

- npm: https://www.npmjs.com/package/react-responsive-datepicker-zain
- Repository: https://github.com/zaykhere/react-responsive-datepicker-zain
- Homepage: https://github.com/zaykhere/react-responsive-datepicker-zain#readme
- Issues: https://github.com/zaykhere/react-responsive-datepicker-zain/issues
- npm.io page: https://npm.io/package/react-responsive-datepicker-zain

## Recent versions

- 2.0.0 (latest) — 2023-11-22
- 1.0.9 — 2023-11-22
- 1.0.8 — 2023-11-22
- 1.0.7 — 2023-11-22
- 1.0.6 — 2023-11-22

## README

# React Responsive Datepicker
[![NPM](https://img.shields.io/npm/v/react-responsive-datepicker.svg)](https://www.npmjs.com/package/react-responsive-datepicker) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

This is a React Library for your projects to make datepicker looks great!
## Features

- Awesome UI
- Customable
- Mobile friendly
- Add min and max date
- Just use Vanilla JS to modify date

And of course Dillinger itself is open source with a [public repository][dill]
 on GitHub.

## Installation

```
npm install --save react-responsive-datepicker
```
or use yarn
```
yarn add react-responsive-datepicker
```

![My Image](./image/ss.png)

## Example
```tsx
import React from 'react'

import { DatePicker } from 'react-responsive-datepicker'
import 'react-responsive-datepicker/dist/index.css'

const App = () => {
  const [isOpen, setIsOpen] = React.useState(false)

  return (
    <div>
      <button
        onClick={() => {
          setIsOpen(true)
        }}
      >
        Open
      </button>
      <DatePicker
        isOpen={isOpen}
        onClose={() => setIsOpen(false)}
        defaultValue={new Date(2022, 8, 8)}
        minDate={new Date(2022, 10, 10)}
        maxDate={new Date(2023, 0, 10)}
        headerFormat='DD, MM dd'
      />
    </div>
  )
}

export default App

```

## Props
These are the props to custom your datepicker.
| Prop | Required | Type | Default |
| ------ | ------ | ------ | ------- |
| isOpen | ✅ | `boolean` | false |
| defaultValue | ❌ | `Date` | null |
| title | ❌ | `string` | Select Date |
| showTitle | ❌ | `boolean` | true |
| minDate | ❌ | `Date` | null |
| maxDate | ❌ | `Date` | null |
| onChange | ❌ | `(date: Date) => void` |
| onClose | ❌ | `() => void` |
| closeText | ❌|  `string`|Close|
| clearText | ❌|  `string `|Clear|
| headerFormat|❌ | `Date format` |  
| monthNames | ❌| `string[]`|english month names|
| dayNames | ❌| `string[]`|english day names|
| colorScheme | ❌| `string`|purple|

## Date Formats
- _D_ to show short day name, etc. Sun, Tue.
- _DD_ to show day name, etc. Sunday, Monday.
- _d_ to show date without 0.
- _dd_ to show date with 0.
- _MM_ to show month name, etc. January, March.
- _M_ to show short month name, etc. Jan, Mar.
- _m_ to show month number.
- _mm_ to show month number with 0.

## License
MIT © [agunbuhori](https://github.com/agunbuhori)

## Made with ❤️
By Agun Buhori

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