1.3.2 • Published 6 months ago
calendareact v1.3.2
calendaЯReact
Example app
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
6 months ago
1.3.1
6 months ago
1.3.0
6 months ago
1.2.0
7 months ago
1.1.5
12 months ago
1.1.4
12 months ago
1.1.3
12 months ago
1.0.2
1 year ago
1.0.1
1 year ago
1.0.3
1 year ago
1.0.0
1 year ago
0.4.5
1 year ago
0.4.4
1 year ago
0.4.3
1 year ago
0.4.2
1 year ago
0.4.1
1 year ago
0.4.0
1 year ago
0.3.9
1 year ago
0.3.8
1 year ago
0.3.7
1 year 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
2 years ago
0.2.14
2 years ago
0.2.13
2 years ago
0.2.10
2 years ago
0.2.9
2 years ago
0.2.8
2 years ago
0.2.7
2 years ago
0.2.6
2 years ago
0.2.5
2 years ago
0.2.4
2 years ago
0.2.3
2 years ago
0.2.2
2 years ago
0.2.1
2 years ago
0.2.0
2 years ago
0.1.5
2 years ago
0.0.5
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago