Skip to content

YutHelloWorld/calendar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

59 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

vortex-calendar

NPM version build status node version npm download npm license

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

๐Ÿ‘‰ 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

Property Type Default Description
minDate String ('YYYY-MM-DD') The minimum date that is selectable
maxDate String ('YYYY-MM-DD') The maximum date that is selectable
onSelect Function Callback invoked after date select
locale String '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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published