react-inline-calender
moment and bootstrap have been used to create this component.
HomePage
Relative Vue Component
Installation npm:
npm i react-inline-calender --save
Components
- InlineCalender
- InlineCalenderVertical
- MonthCalender
- YearCalender
- TenYearCalender
- FullCalender
- FullCalenderVertical
sample
import React from "react";import "bootstrap/dist/css/bootstrap.css";import { InlineCalender, InlineCalenderVertical, MonthCalender, YearCalender, TenYearCalender, FullCalender, FullCalenderVertical} from "react-inline-calender";class Sample extends React.Component { constructor(props) { super(props); this.state = { e1: { arrowRightColor: { color: "#88304e" }, arrowLeftColor: { color: "#88304e" }, mainBodyStyle: { width: "300px", background: "#eaffd0", border: "2px solid #311d3f", borderRadius: "5px", padding: "15px" }, titleStyle: { height: "40px", marginBottom: "5px", color: "#88304e" }, headerCalenderStyle: { height: "40px", color: "#fff", background: "#88304e", margin: "0 -14.5px" }, rowCalenderStyle: { height: "50px", margin: "0 -14px" }, footerStyle: { height: "20px", color: "#88304e" }, afterTodayStyle: { color: "#eeeeee", boxShadow: "inset 0 0 10px #311d3f", background: "#88304e", transition: "all 1s" }, todayStyle: { color: "#eeeeee", background: "#522546", boxShadow: "0 0 5px #eeeeee", transition: " all 1s" }, beforeTodayStyle: { background: "#eeeeee", boxShadow: "inset 0 0 10px #88304e", color: "#88304e", transition: "all 1s" }, todayButtonStyle: { color: "#88304e" }, showSelectedValueStyle: { display: "flex", alignItems: "center", color: "#88304e" } }, moveAction: { action: "" }, da: "" }; this.valSetter = this.valSetter.bind(this); } valSetter(val) { this.setState({ da: val }); } render() { return ( {this.state.da} { this.setState({ moveAction: { useJump: true, jump: { year: -1, month: 2 } } }); }} > jump { this.setState({ moveAction: { action: "p" } }); }} > per { this.setState({ moveAction: { action: "t" } }); }} > today { this.setState({ moveAction: { action: "n" } }); }} > next ); }} export default Sample;