1.2.1 • Published 2 years ago
react-beautiful-calendar v1.2.1
react-beautiful-calendar
A beautiful react calendar component library for your beautiful react apps.
🏡 Online Demo
- Visit Npm Package Homepage.
- Visit Project Homepage to see live demo.
⚡ Specifications
- Pick days, months, years
- Choose size as per your convenience and mood COMING SOON!
- No third-party module needed, no moment.js
🚀 Getting Started
Compatibility
- This package uses
react: "^17.0.2"
,react-dom: "^17.0.2"
as peer dependencies &prop-types: ^15.7.2
as a dependency.
- This package uses
Installation
- Install it via npm, by using
npm install react-beautiful-calendar
- or via yarn, by hitting
yarn add react-beautiful-calendar
Importing
- Import it in your project, by using
import Calendar from "react-beautiful-calendar"
Using
- Use it by adding,
<Calendar onDateChange={your_handler_function} />
📑 User Guide
Calendar
- Displays a complete, interactive calendar widget.
Code Snippet Example
import Calendar from "react-beautiful-calendar";
const App = () => {
const dateChangeHandler = ([date, month, year]) => {
// ...use the values here
};
// ...other code
return <Calendar onDateChange={dateChangeHandler} />;
};
Props
Prop name | Description | Default value | Example |
---|---|---|---|
variant | It denotes the type of calendar widgets available | default | variant="default" |
font | Sets font style for the widget | DM Sans | font="DM Sans" |
onDateChange | Handler function, triggers when a date is selected, it returns you an array containing 3 values as date, month and year | - | dateChangeHandler([date, month, year]) |
🐞 Issues
- Issues: Issues
📤 Useful Links
- Icons: Fontawesome
📜 License
- MIT License
🏆 Author
1.2.0
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.0
2 years ago
1.1.9
2 years ago
1.1.8
2 years ago
1.1.7
2 years ago
1.1.6
2 years ago
1.1.5
2 years ago
1.1.4
2 years ago
1.1.3
2 years ago
1.2.1
2 years ago
1.1.2
2 years ago
1.1.12
2 years ago
1.1.11
2 years ago
1.1.10
2 years ago
1.1.16
2 years ago
1.1.15
2 years ago
1.1.14
2 years ago
1.1.13
2 years ago
0.0.3
3 years ago
0.0.2
3 years ago
0.0.1
3 years ago