1
1
# reactjs-availability-calendar
2
2
3
3
[ ![ NPM version] [ npm-image ]] [ npm-url ]
4
- [ ![ Build] [ github-build ]] [ github-build-url ]
5
4
![ npm-typescript]
6
5
[ ![ License] [ github-license ]] [ github-license-url ]
7
6
@@ -28,7 +27,7 @@ Add `Calendar` to your component:
28
27
``` js
29
28
import React from ' react'
30
29
import ReactDOM from ' react-dom/client'
31
- import { Calendar } from ' reactjs-availability-calendar'
30
+ import Calendar from ' reactjs-availability-calendar'
32
31
33
32
const bookings = [
34
33
{
@@ -54,23 +53,62 @@ root.render(
54
53
55
54
```
56
55
57
- Include default stylesheet in your html
56
+ ## Default CSS
58
57
59
- Note: Please host the CSS in this file yourself
58
+ Please copy and self host the default CSS linked below.
60
59
61
- <a href =" https://github.com/simpletut/reactjs-availability-calendar/blob/main/styles/main.min.css " >Link to CSS</a >
60
+ <a href =" https://github.com/simpletut/reactjs-availability-calendar/blob/main/styles/main.min.css " >Default CSS</a >
62
61
<br />
63
- <a href =" https://github.com/simpletut/reactjs-availability-calendar/blob/main/styles/main.min. css " >Link to Minified CSS</a >
62
+ <a href =" https://github.com/simpletut/reactjs-availability-calendar/blob/main/styles/main.css " >Minified Default CSS</a >
64
63
65
64
```
66
- <link rel="stylesheet" href="path/to/hosted /styles.css">
65
+ <link href="path/to/your /styles.css" rel="stylesheet ">
67
66
68
67
```
69
68
69
+ ## Settings / Configurations:
70
+
71
+ ### bookings
72
+
73
+ ** Example:**
74
+ ```
75
+ {
76
+ from: '01-08-2022',
77
+ to: '01-16-2022',
78
+ middayCheckout: true,
79
+ }
80
+ ```
81
+ ** Type:** Array of Bookings\
82
+ ** Default:** [ ] \
83
+ ** Description:** Dates should be in US format (MM-DD-YYYY).
84
+
85
+
86
+ ### showNumberOfMonths
87
+
88
+ ** Type:** Number\
89
+ ** Default:** 12\
90
+ ** Description:** Number of Months to show
91
+
92
+ ### showCurrentYear
93
+
94
+ ** Type:** Bool\
95
+ ** Default:** true\
96
+ ** Description:** Render active Calendar Year
97
+
98
+ ### showControls
99
+
100
+ ** Type:** Bool\
101
+ ** Default:** true\
102
+ ** Description:** Render navigation buttons to move forward and previous Calendar Years
103
+
104
+ ### showKey
105
+
106
+ ** Type:** Bool\
107
+ ** Default:** true\
108
+ ** Description:** Render Key for the different Calendar States
109
+
70
110
[ npm-url ] : https://www.npmjs.com/package/reactjs-availability-calendar
71
111
[ npm-image ] : https://img.shields.io/npm/v/reactjs-availability-calendar
72
- [ github-license ] : https://img.shields.io/github/license/simpletut/reactjs-availability-calendar/blob/main/LICENSE
112
+ [ github-license ] : https://img.shields.io/github/license/simpletut/reactjs-availability-calendar
73
113
[ github-license-url ] : https://github.com/simpletut/reactjs-availability-calendar/blob/main/LICENSE
74
- [ github-build ] : https://github.com/main/reactjs-availability-calendar/actions/workflows/publish.yml/badge.svg
75
- [ github-build-url ] : https://github.com/simpletut/reactjs-availability-calendar/actions/workflows/publish.yml
76
- [ npm-typescript ] : https://img.shields.io/npm/types/reactjs-availability-calendar
114
+ [ npm-typescript ] : https://img.shields.io/npm/types/reactjs-availability-calendar
0 commit comments