npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-calendar-scheduler

v2.0.8

Published

A calendar scheduler built with React,Timebox and Event Drag and Drop

Downloads

28

Readme

React Calendar Scheduler

React Calendar Scheduler is a flexible and customizable calendar component for scheduling events in React applications.

Features

  • Supports week and month views for calendar scheduling.
  • Drag and drop functionality for event placement and resizing.
  • Customizable event rendering and styling.
  • Easily add, update, and delete events.
  • Responsive design for mobile and desktop devices.

Installation

You can install the React Calendar Scheduler package using npm or yarn.

Using npm:


npm install react-calendar-scheduler

Using yarn:


yarn add react-calendar-scheduler

Once installed, you can import the component in your React application and start using it.

Usage

Import the ReactCalendarScheduler component and use it in your React application:

import { ReactCalendarScheduler } from 'react-calendar-scheduler';

function App() {
  // Define your event data
  const events = [
    // Event objects
  ];

  return (
    <div>
      <h1>React Calendar Scheduler</h1>
      <ReactCalendarScheduler
        events={events}
        // Other props
      />
    </div>
  );
}

export default App;

Props

| Name | Description | Default Value | | --------------------------------- | ----------------------------------------------------------------------------------------------- | --------------- | | selectedDate | The initial selected date for the calendar. Defaults to the current date. | Current date | | calendarType | The type of calendar to display. Can be 'week' or 'month'. | 'week' | | monthCalanderTitleFormate | The format for the month calendar title. Defaults to 'dddd'. | 'dddd' | | monthCalanderTitle | The format for the day column title in the month calendar. Defaults to 'ddd'. | 'ddd' | | monthCalanderDayHeight | The height of each day column in the month calendar. Defaults to 120. | 120 | | minimumEventThickness | The minimum thickness for event rendering. Defaults to 30. | 30 | | weekHourBoxHeight | The height of each hour box in the week calendar. Defaults to 50. | 50 | | weekCalanderNextBtnDayIncrement | The number of days to increment on the next button click in the week calendar. Defaults to 7. | 7 | | startingWeekday | The starting weekday for the week calendar. 0 for Sunday, 1 for Monday, and so on. | 1 | | weekCalanderDayStartFromHour | The starting hour for each day in the week calendar. Defaults to 7. | 7 | | weekCalanderVisibleHour | The number of visible hours in each day of the week calendar. Defaults to 12. | 12 | | weekCalanderTitleFormate | The format for the day column title in the week calendar. Defaults to 'ddd, MMM dd'. | 'ddd, MMM dd' | | weekCalanderTimeFormate | The format for the time display in the week calendar. Defaults to 12. | 12 | | monthCalanderMinCellHeight | The minimum height of each cell in the month calendar. Defaults to 50. | 50 | | disabaleEventPopup | Disables the event popup if set to true. Defaults to false. | false | | disabaleAddEventPopup | Disables the add event popup if set to true. Defaults to false. | false | | handleUpdateEvent | Callback function for updating an event. | | | handleAddNewEvent | Callback function for adding a new event. | |

Props selectedDate (optional): The initial selected date for the calendar. Defaults to the current date. calendarType (optional): The type of calendar to display. Can be 'week' or 'month'. Defaults to 'week'. // Other props and their descriptions

Contributing

Contributions, bug reports, and feature requests are welcome. Feel free to open an issue or submit a pull request on the GitHub repository.

License

This project is licensed under the MIT License.