Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

nepali-calendar-react

ideabreed33MIT1.0.3

Made with create-react-library

calendar, nepali calendar, react calendar, nepali calendar react

readme

nepali-calendar-react

Made with create-react-library

NPM JavaScript Style Guide

Install

npm install --save nepali-calendar-react

Usage

import React, { Component } from 'react'

import { Calender } from 'nepali-calendar-react'
import 'nepali-calendar-react/dist/index.css'

class Example extends Component {
  render() {
    return (
      <Calendar
        language='nepali'
        onDateClicked={(result) => console.log(result)}
        dayClickBehaviour='single'
        mode='monthly'
        startDate='2020/10/21'
      />
    )
  }
}

Props

Name Required Type Default Description
language No String english A language of preference english or nepali
mode No String monthly Wheather a single year or multiple year should be available
onDateClicked Yes Function | return array if multiple dayClickedBehaviour else returns object
dayClickedBehaviour No String single whether single or multiple date should be selected on click
sartDate No Date current Date takes date in ad

License

MIT © Sajandhakal12

changelog

Semantic Versioning Changelog

1.0.0 (2021-06-13)

Bug Fixes

Features