Giter Site home page Giter Site logo

jayeshkattar / react-full-year-calendar Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 1.0 503 KB

Twelve months calendar component in React JS

Home Page: https://react-full-year-calendar.vercel.app/

License: MIT License

HTML 19.45% SCSS 7.80% TypeScript 55.87% JavaScript 16.77% Shell 0.11%
react year-calendar

react-full-year-calendar's Introduction

npm version Code Quality: Javascript Downloads Total Alerts

react-full-year-calendar

Twelve months calendar component in React JS

Demo

Visit this link

Documentation

Installation

npm

npm install react-full-year-calendar --save

yarn

yarn add react-full-year-calendar

Props

react-full-year-calendar component accepts the below as props

  • year (Mandatory) - Number - Accepts the Year to be displayed
  • onSelection (Optional) - Callback Function - returns the selected Date in String Format (YYYY-MM-DD)
  • numberOfMonths (Optional) - Number - Accepts the number of months to be displayed from the current Month
  • showYearHeading (Optional) - Boolean - Flag to display the year by default it's false
  • isWeekDay (Optional) - Callback Function - returns a boolean value
  • selectedDates (Optional) - string Array - accepts strings in YYYY-MM-DD format

Example 1

import Calendar from 'react-full-year-calendar';

export default function SimpleCalendar() {
	return <Calendar year={2021} />;
}

Example 2

import Calendar from 'react-full-year-calendar';

export default function SimpleCalendar() {
	const [current, setCurrent] = useState('');
	return <Calendar year={2021} onSelection={setCurrent} />;
}

Example 3

import Calendar from 'react-full-year-calendar';

export default function SimpleCalendar() {
	const [weekDay, setWeekDay] = useState(false);
	return <Calendar year={2021} isWeekDay={setWeekDay} />;
}

react-full-year-calendar's People

Contributors

jayeshkattar avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

alexandrupap

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.