# vue-material-date-time-picker

> A simple Vue.js date and time picker made with material design in mind

Latest version **0.6.0** (published 2020-02-05) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.6.0 |
| Published | 2020-02-05 |
| First published | 2020-01-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 401 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Technorely |
| Maintainers | kirill.ganzha |
| Keywords | vue, material, datepicker, timepicker, date-picker, time-piker, calendar |

## Links

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

## 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.6.0 (latest) — 2020-02-05
- 0.5.0 — 2020-02-03
- 0.4.0 — 2020-01-24
- 0.3.0 — 2020-01-17
- 0.2.4 — 2020-01-16
- 0.2.3 — 2020-01-15
- 0.2.2 — 2020-01-14
- 0.2.1 — 2020-01-13
- 0.2.0 — 2020-01-10

## README

# vue-material-date-time-picker

A date and time picker Vue component. Compatible with Vue 2.x. Performed in material design.

- [Demo](#demo)
- [Install](#install)
- [Usage](#usage)
- [Props](#available-props)

NB. Vue 1.x is not supported.

## Demo

To view a demo online: https://codesandbox.io/s/vue-materialdatetimepicker-demo-gs52h

To view demo examples locally clone the repo and run `npm install && npm run serve` or `yarn && yarn serve`

## Install

``` bash
npm install vue-material-date-time-picker --save
```
or
```
yarn add vue-material-date-time-picker --save
```

To use component in your project import it as it is shown bellow

``` javascript
<script>
import VueMaterialDateTimePicker from 'vue-material-date-time-picker'

export default {
  // ...
  components: {
    VueMaterialDateTimePicker
  },
  // ...
}
</script>
```

## Usage

``` html
<VueMaterialDateTimePicker v-model="date" :is-date-only="true" />
```

*value* prop that is handled by `v-model` will be `new Date()` type string

## Available props

| Prop                          | Type            | Default     | Description                                   |
|-------------------------------|-----------------|-------------|-----------------------------------------------|
| value                         | String          |             | Date value of the date time picker            |
| valueFormatted                | String          |             | Formatted value that will be displayed, if    |
|                               |                 |             | not passed value (JS Date()) will be used     |
| is-date-only                  | Boolean         |             | Define if picker takes only date or time too  |                      |

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