Skip to content

Repository files navigation

vortex-calendar

NPM versionbuild statusnode versionnpm downloadnpm license

A light calendar 📅 . (gzipped: 2.45K)

👉 Online

Installation

# npm install vortex-calendar
yarn add vortex-calendar

Usage

importCalendarfrom'vortex-calendar'importReactfrom'react'import{render}from'react-dom'constMOUNT_NODE=document.getElementById('root')render(<CalendarminDate="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.

About

📅 A lightweight calendar build with react.

Topics

Resources

Stars

12 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages