react-datepicker-nepali
v1.0.1
Published
datepicker for dates in BS
Downloads
19
Readme
React Date Picker Nepali
A simple reusable datepicker component for dates in Bikram Sambat(Nepali Official Calendar)
Installation
Package can be installed via NPM:
npm install --save react-datepicker-nepali
import React, { Component } from 'react';
import DatePicker from 'react-datepicker-nepali';
class Example extends Component {
render () {
return (
<DatePicker />
)
}
}
Usage
The most basic usage
<DatePicker date={this.state.date} onChange={this.handleChange} />
If date prop is not passed, then the default will be today. onChange receives date on date change.
License
MIT © KhemPoudel