0.1.1 • Published 7 years ago

calendar-view v0.1.1

Weekly downloads
12
License
-
Repository
github
Last release
7 years ago

calendar-view

Datepicker inspired by Windows Calendar view

Supports Preact & React (not tested)

Demo

Install

npm i calendar-view

Usage

import DatePicker from 'calendar-view/react'

<DatePicker
  date={/* initial date (optional, default: new Date) */}
  onSelect={(date, yyyymmdd) => {
    // triggered when user selects a date in the Month view
    // date = JS Date object
    // yyyymmdd = format useful for <input type='date'>
  }}
>
0.1.1

7 years ago

0.1.0

7 years ago