# vue-single-date-picker

> https://jiayingy.github.io/vue-single-date-picker/

Latest version **0.5.12** (published 2021-03-28) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.5.12 |
| Published | 2021-03-28 |
| First published | 2020-03-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 846.8 KB |
| Known vulnerabilities | 0 (+5 in 3 direct dependencies) |
| Install scripts | no |
| GitHub stars | 17 |
| Maintainers | jiayingy |
| Keywords | vue, datepicker, date-picker, date, javascript |

## Links

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

## Dependencies (4)

- [vue](https://npm.io/package/vue.md) ^2.6.10
- [core-js](https://npm.io/package/core-js.md) ^3.3.2
- [node-sass](https://npm.io/package/node-sass.md) ^4.13.0
- [serialize-javascript](https://npm.io/package/serialize-javascript.md) ^2.1.2

## Alternatives

- [@js-joda/timezone](https://npm.io/package/@js-joda/timezone.md) — 383.4K weekly downloads
- [chartjs-adapter-moment](https://npm.io/package/chartjs-adapter-moment.md) — 210.8K weekly downloads
- [strftime](https://npm.io/package/strftime.md) — 171.2K weekly downloads
- [vue-flatpickr-component](https://npm.io/package/vue-flatpickr-component.md) — 115.8K weekly downloads
- [timepicker](https://npm.io/package/timepicker.md) — 51.0K weekly downloads

## Recent versions

- 0.5.12 (latest) — 2021-03-28
- 0.5.11 — 2020-08-05
- 0.5.10 — 2020-08-05
- 0.5.9 — 2020-08-05
- 0.5.8 — 2020-05-25
- 0.5.7 — 2020-05-25
- 0.4.6 — 2020-03-14
- 0.4.5 — 2020-03-14
- 0.4.4 — 2020-03-14

## README

## Demo
https://jiayingy.github.io/vue-single-date-picker/

## Installation
```
npm i vue-single-date-picker
```

## How to use

### Component

Import package
```javascript
import SingleDatePicker from 'vue-single-date-picker';

export default {
  components: {
    SingleDatePicker
  }
}
```

Create component in your template
```javascript
<SingleDatePicker />
```

### Styles
1. This library uses Google Material Icon pack. Refer to [here](https://google.github.io/material-design-icons/) on how to include it in your project.

2. In your css/scss file,
```
@import '~vue-single-date-picker/dist/vue-single-date-picker.css';
```
### Props 
|Props|arguments|remarks|
|:--|:--|:--|
|date|```{ year: <Number>, month: <Number>, date: <Number> }```|E.g. 1 Jan 2020 <br> {year: 2020, month: 0, date: 1}|
|first-day-of-week|```firstDayOfWeek: <Number>```|(0: Sunday ... 6: Saturday) <br> E.g. start week on Monday <br> :first-day-of-week="1"| 

### Events 
|events|arguments|remarks|
|:--|:--|:--|
|@selectDate|```{ year: <Number>, month: <Number>, date: <Number> }```|E.g. 1 Jan 2020 <br> {year: 2020, month: 0, date: 1}|

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