2.0.8 • Published 8 months ago

react-calendar-scheduler v2.0.8

Weekly downloads
-
License
-
Repository
-
Last release
8 months ago

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

NameDescriptionDefault Value
selectedDateThe initial selected date for the calendar. Defaults to the current date.Current date
calendarTypeThe type of calendar to display. Can be 'week' or 'month'.'week'
monthCalanderTitleFormateThe format for the month calendar title. Defaults to 'dddd'.'dddd'
monthCalanderTitleThe format for the day column title in the month calendar. Defaults to 'ddd'.'ddd'
monthCalanderDayHeightThe height of each day column in the month calendar. Defaults to 120.120
minimumEventThicknessThe minimum thickness for event rendering. Defaults to 30.30
weekHourBoxHeightThe height of each hour box in the week calendar. Defaults to 50.50
weekCalanderNextBtnDayIncrementThe number of days to increment on the next button click in the week calendar. Defaults to 7.7
startingWeekdayThe starting weekday for the week calendar. 0 for Sunday, 1 for Monday, and so on.1
weekCalanderDayStartFromHourThe starting hour for each day in the week calendar. Defaults to 7.7
weekCalanderVisibleHourThe number of visible hours in each day of the week calendar. Defaults to 12.12
weekCalanderTitleFormateThe format for the day column title in the week calendar. Defaults to 'ddd, MMM dd'.'ddd, MMM dd'
weekCalanderTimeFormateThe format for the time display in the week calendar. Defaults to 12.12
monthCalanderMinCellHeightThe minimum height of each cell in the month calendar. Defaults to 50.50
disabaleEventPopupDisables the event popup if set to true. Defaults to false.false
disabaleAddEventPopupDisables the add event popup if set to true. Defaults to false.false
handleUpdateEventCallback function for updating an event.
handleAddNewEventCallback 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.

1.1.1

12 months ago

1.1.0

12 months ago

2.0.3

9 months ago

2.0.2

9 months ago

2.0.5

8 months ago

2.0.4

9 months ago

2.0.7

8 months ago

2.0.6

8 months ago

2.0.8

8 months ago

2.0.1

9 months ago

2.0.0

9 months ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.2

4 years ago

0.1.3

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago