1.3.2 • Published 1 year ago

calendareact v1.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

calendaЯReact

Example app

View the example app here

Overview

A simple react+dayjs calendar component with 3 views:

Small

Week

Month

Installation

npm i calendareact

Usage

import React, { useState } from 'react';
import Calendar from 'calendareact';

function App() {
  const [selectedDate, setSelectedDate] = useState<Dayjs>(dayjs())
  return (
    <Calendar
      // events - list of events to display in the calendar
      events={[]}
      colors={colors}
      selectedDate={selectedDate}
      onSelectTime={onSelectTime}
      onSelectDate={(date: dayjs.Dayjs) => setSelectedDate(date)}
      onSelectEvent={onSelectEvent}
      onEditEvent={onEditEvent}
      onDeleteEvent={onDeleteEvent}
      onApproveEvent={onApproveEvent}
      showApprove={showApprove}
      // errors - display errors on day headers
      errors={errors}
      // dayActions - Add buttons to the day headers
      dayActions={dayActions}
    />
  );
}

export default App;
1.3.2

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.0

1 year ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.3

2 years ago

1.0.0

2 years ago

0.4.5

2 years ago

0.4.4

2 years ago

0.4.3

2 years ago

0.4.2

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.3.9

2 years ago

0.3.8

2 years ago

0.3.7

2 years ago

0.3.6

2 years ago

0.3.5

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.0

3 years ago

0.2.14

3 years ago

0.2.13

3 years ago

0.2.10

3 years ago

0.2.9

3 years ago

0.2.8

3 years ago

0.2.7

3 years ago

0.2.6

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.5

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago