All Projects â†’ ipiyer â†’ react-monthrange-picker

ipiyer / react-monthrange-picker

Licence: MIT license
ReactJS month calendar component

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to react-monthrange-picker

Heyui
🎉UI Toolkit for Web, Vue2.0 http://www.heyui.top
Stars: ✭ 2,373 (+16850%)
Mutual labels:  datepicker
Didatepicker
Yet another datepicker for iOS
Stars: ✭ 242 (+1628.57%)
Mutual labels:  datepicker
nepali-date-picker
Nepali Date Picker jQuery Plugin 🇳🇵
Stars: ✭ 71 (+407.14%)
Mutual labels:  datepicker
Datepicker
Get a date with JavaScript! A datepicker with no dependencies.
Stars: ✭ 212 (+1414.29%)
Mutual labels:  datepicker
Flatpickr
lightweight, powerful javascript datetimepicker with no dependencies
Stars: ✭ 14,575 (+104007.14%)
Mutual labels:  datepicker
React Datepicker
An easily internationalizable, accessible, mobile-friendly datepicker library for the web, build with styled-components.
Stars: ✭ 252 (+1700%)
Mutual labels:  datepicker
Hotel Datepicker
Date range picker for hotels
Stars: ✭ 202 (+1342.86%)
Mutual labels:  datepicker
react-semantic-ui-datepickers
Datepickers built with Semantic UI for React and Dayzed.
Stars: ✭ 87 (+521.43%)
Mutual labels:  datepicker
Semantic Ui Calendar React
Datepicker react component based on semantic-ui-react components
Stars: ✭ 239 (+1607.14%)
Mutual labels:  datepicker
datepickertimeline
Linear date picker for Jetpack compose
Stars: ✭ 43 (+207.14%)
Mutual labels:  datepicker
Vue Bootstrap Datetimepicker
Vue.js component for eonasdan bootstrap datetimepicker
Stars: ✭ 221 (+1478.57%)
Mutual labels:  datepicker
Calendarview
A highly customizable calendar library for Android, powered by RecyclerView.
Stars: ✭ 2,862 (+20342.86%)
Mutual labels:  datepicker
Vue Datepicker Ui
Datepicker Component For Vue
Stars: ✭ 252 (+1700%)
Mutual labels:  datepicker
Persian Date Picker Dialog
Persian Date Picker Dialog for Android
Stars: ✭ 205 (+1364.29%)
Mutual labels:  datepicker
monthyear-picker
Month and Year picker library for Android
Stars: ✭ 34 (+142.86%)
Mutual labels:  datepicker
Lightpick
(deprecated) Check out the new date picker Litepicker
Stars: ✭ 204 (+1357.14%)
Mutual labels:  datepicker
Adm Datetimepicker
Pure AngularJs dateTimePicker
Stars: ✭ 244 (+1642.86%)
Mutual labels:  datepicker
react-calendar-datetime-picker
A simple and fast date and time picker component for React
Stars: ✭ 58 (+314.29%)
Mutual labels:  datepicker
react-modern-datepicker
A modern date picker for react library
Stars: ✭ 19 (+35.71%)
Mutual labels:  datepicker
nativescript-datetimepicker
Plugin with date and time picking fields
Stars: ✭ 26 (+85.71%)
Mutual labels:  datepicker

react-monthrange-picker Version Badge

Coverage Status Build Status dependency status dev dependency status License Downloads npm badge

react-monthrange-picker    bottom react-monthrange-picker  left

Example

You can either look at the example application example application

OR

For simple example:

API

Calendar

This component is designed to allow users to select both start month and end month. It also has functionalities to detect varies events like onYearChange, onRender, onSelect, onApply, onCancel, and calendar positioning.

Props

selectedDateRange

MomentRange object representing the current selected date range or initial date range of the calendar. Defaults to the current year.

  selectedDateRange: CustomPropTypes.MomentRangeType
restrictionRange

MomentRange object which restricts the calendar between start and the end date. Defaults between 2000 and 4 years from now.

  restrictionRange: CustomPropTypes.MomentRangeType
direction

direction is the opening direction of the calendar.

  direction: React.PropTypes.oneOf(['top', 'left', 'right', 'bottom'])
onYearChange

onYearChange is a callback fn triggered when the calendar year changes.

  onYearChange: React.PropTypes.func
onRender

onRender is a callback fn triggered when the app rendered first.

  onRender: React.PropTypes.func
onSelect

onSelect is a callback fn triggered when the user month selection changes, the fn is called with the current selection range of type CustomPropTypes.MomentRangeType.

  onSelect: React.PropTypes.func
onApply

onApply is a callback fn triggered when the user clicks the apply button.

  onApply: React.PropTypes.func
onCancel

onCancel is a callback fn triggered when the user clicks the cancel button.

  onCancel: React.PropTypes.func
display

display defaults to false, display true would show the calendar when rendered first.

  display: React.PropTypes.bool
position

position is a way to custom position the element (overrides the centering of calendar).

  position: React.PropTypes.shape({
    top: React.PropTypes.number,
    left: React.PropTypes.number,
  })

Theming

react-monthrange-picker comes with a set of SCSS variables that can be overridden to add your own project-specific theming. react-monthrange-picker also exports the style with the package.json, so you can bundle the css with parcelify. Checkout the example app

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].