# vue-date-picker

> datepicker component for Vue 2.x

Latest version **2.5.0** (published 2019-04-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-date-picker
pnpm add vue-date-picker
yarn add vue-date-picker
bun add vue-date-picker
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.5.0 |
| Published | 2019-04-05 |
| First published | 2016-01-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 120.3 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 98 |
| Maintainers | f2 |
| Keywords | vue, datepicker, vue-datepicker, vue-date-picker |

## Links

- npm: https://www.npmjs.com/package/vue-date-picker
- Repository: https://github.com/8788/vue-date-picker
- Issues: https://github.com/8788/vue-date-picker/issues
- npm.io page: https://npm.io/package/vue-date-picker

## Dependencies (1)

- [vue](https://npm.io/package/vue.md) ^2.5.21

## Recent versions

- 2.5.0 (latest) — 2019-04-05
- 2.4.0 — 2019-03-21
- 2.3.0 — 2019-03-02
- 2.2.1 — 2019-02-28
- 2.2.0 — 2019-02-25
- 2.1.0 — 2019-01-17
- 2.0.1 — 2019-01-10
- 2.0.0 — 2019-01-06
- 1.0.2 — 2016-05-19
- 1.0.1 — 2016-01-22
- 1.0.0 — 2016-01-22

## README

# vue-date-picker

[![npm version][npm-image]][npm-url] [![david deps][david-image]][david-url] [![npm license][license-image]][download-url]

datepicker component for Vue 2.x

## Screenshot

![screenshot](screenshot.png)

## Instllation

```bash
$ npm install vue-date-picker --save
```

## Usage

```html
<template>
  <div class="demo">
    <datepicker :readonly="true" format="YYYY-MM-DD" name="date1"></datepicker>
    <datepicker value="2018-9-5" format="YYYY-M-D" name="date2"></datepicker>
    <datepicker :readonly="true" format="MMM/D/YYYY" name="date3" :input-attr="{ 'data-test': 'value' }"></datepicker>
  </div>
</template>

<script>
import datepicker from 'vue-date-picker'

export default {
  components: {
    datepicker
  }
}
</script>
```

## Prop

| Prop                          | Type               | Default     | Description                              |
|-------------------------------|--------------------|:-----------:|------------------------------------------|
| value                         | String             | --          | Date value of the datepicker             |
| name                          | String             | --          | Input name property                      |
| format                        | String             | YYYY-MM-DD  | Date formatting string                   |
| readonly                      | String             | false       | Input readonly property                  |
| input-class                   | Array \| Object    | --          | Binding class for input                  |
| input-style                   | Array \| Object    | --          | Binding inline style for input           |
| input-attr                    | Object             | --          | Binding attribute for input              |
| calendar-class                | Array \| Object    | --          | Binding class for calendar               |
| calendar-style                | Array \| Object    | --          | Binding inline style for calendar        |
| calendar-attr                 | Object             | --          | Binding attribute for calendar           |
| disabled-date                 | Function           | --          | A function that determines if you want to disable dates |

## License

[The MIT License](http://opensource.org/licenses/MIT)

[npm-image]: https://img.shields.io/npm/v/vue-date-picker.svg?style=flat-square
[npm-url]: https://npmjs.org/package/vue-date-picker
[david-image]: https://img.shields.io/david/8788/vue-date-picker.svg?style=flat-square
[david-url]: https://david-dm.org/8788/vue-date-picker
[download-url]: https://npmjs.org/package/vue-date-picker
[license-image]: https://img.shields.io/npm/l/vue-date-picker.svg

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