0.1.11 • Published 2 years ago

react-calendify v0.1.11

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

React Calendify

An Events Calendar library for React

npm publish semantic-release: react

⚠ CAUTION - API may change drastically

The aim of this project to create highly customizable events based calendar for react. Although many feature-rich libraries like react-big-calendar, react-full-calendar, dayz exist, the lack of customizability can be a hindrance sometime. It will have month, week and day view.

Install

npm

npm i dayjs react-calendify

yarn

yarn add dayjs react-calendify

pnpm

pnpm add dayjs react-calendify

Usage

Import the Calendar component

import Calendar from "react-calendify";

Import the default react-calendify/dist/style.css file to your .css or .js or .tsx file

CSS

@import "~react-calendify/dist/style.css";

JS/TS

import "~react-calendify/dist/style.css";

The ~ in the front might not be needed in case you are not using webpack. Consult with build system on how to import styles from node modules.

In the .js/.jsx/.tsx file

function CustomCalendar () {
	return(
		<Calender type="weekly" events={[
			{start: '2022-05-09 09:56', end: '2022-05-18 13:38'}
		]}>
	)
}

API

propsoptions
type"monthly", "weekly", "daily" // currently only weekly view working
events{start: string, end: string}[]
0.1.11

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago