1.1.5 ā€¢ Published 7 years ago

vortex-calendar v1.1.5

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

vortex-calendar

NPM version build status node version npm download npm license

A light calendar šŸ“… . (gzipped: 2.45K)

npm.io

šŸ‘‰ Online

Installation

# npm install vortex-calendar
yarn add vortex-calendar

Usage

import Calendar from 'vortex-calendar'
import React from 'react'
import {render} from 'react-dom'

const MOUNT_NODE = document.getElementById('root')
render(<Calendar
  minDate="2017-06-01"
  locale="zh"
  onSelect={(v) => console.log(v)}
/>, MOUNT_NODE)

Prop Types

PropertyTypeDefaultDescription
minDateString ('YYYY-MM-DD')The minimum date that is selectable
maxDateString ('YYYY-MM-DD')The maximum date that is selectable
onSelectFunctionCallback invoked after date select
localeString'en'By default, calendar comes with the English locale.You can set 'zh' for Chinese.

Contributing

  • Clone this repository.

    git clone https://github.com/YutHelloWorld/calendar.git <your project name>
    cd <your project name>
  • Install all dependencies by yarn or npm i.Then code in ./src.

  • Run yarn build && yarn start to see changes with demo.

  • Pull your request.

License

The MIT License.

1.1.5

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago