All Projects → almogtavor → date-range-picker

almogtavor / date-range-picker

Licence: MIT License
⚛️📆 Flexible React date range picker calendar with no dependencies.

Programming Languages

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

Projects that are alternatives of or similar to date-range-picker

react-native-value-picker
Cross-Platform iOS(ish) style picker for react native.
Stars: ✭ 18 (-80.85%)
Mutual labels:  react-component, react-hooks
React Datepicker2
react datepicker component.(include persian jalaali calendar)
Stars: ✭ 191 (+103.19%)
Mutual labels:  calendar, react-component
react-recycled-scrolling
Simulate normal scrolling by using only fixed number of DOM elements for large lists of items with React Hooks
Stars: ✭ 26 (-72.34%)
Mutual labels:  react-component, react-hooks
whatsapp-clone-react
Build a WhatsApp Clone with React JS and FireBase.
Stars: ✭ 38 (-59.57%)
Mutual labels:  react-component, react-hooks
fluent-windows
🌈 React components that inspired by Microsoft's Fluent Design System.
Stars: ✭ 122 (+29.79%)
Mutual labels:  react-component, react-hooks
tiny-ui
⚛️ A friendly UI component set for React.js
Stars: ✭ 202 (+114.89%)
Mutual labels:  react-component, react-hooks
awesome-web-react
🚀 Awesome Web Based React 🚀 Develop online with React!
Stars: ✭ 31 (-67.02%)
Mutual labels:  react-component, react-hooks
react-daterange-picker
A react date range picker to using @material-ui. Live Demo: https://flippingbitss.github.io/react-daterange-picker/
Stars: ✭ 85 (-9.57%)
Mutual labels:  react-component, react-hooks
react-contentful
📰 A React component library that makes it super simple to compose Contentful content into your sites and applications.
Stars: ✭ 58 (-38.3%)
Mutual labels:  react-component, react-hooks
tsdav
WebDAV, CALDAV, and CARDDAV client for Nodejs and the Browser
Stars: ✭ 33 (-64.89%)
Mutual labels:  calendar
swr-examples
SWR is a React Hook library for remote data fetching. Here are some simple examples.
Stars: ✭ 14 (-85.11%)
Mutual labels:  react-hooks
webcalendar
WebCalendar is a PHP application used to maintain a calendar for a single user or an intranet group of users. It can also be configured as an event calendar.
Stars: ✭ 113 (+20.21%)
Mutual labels:  calendar
fscalendar-ios-binding
Xamarin Binding Library - FSCalendar for iOS https://github.com/WenchaoD/FSCalendar
Stars: ✭ 12 (-87.23%)
Mutual labels:  calendar
react-pinch-and-zoom
A react container component with pinch-to-zoom gesture interaction.
Stars: ✭ 33 (-64.89%)
Mutual labels:  react-component
react-hook-clipboard
A React hook for accessing clipboard
Stars: ✭ 16 (-82.98%)
Mutual labels:  react-hooks
React-Chat-App
This is a real time chat application with features of online status,read receipnt,image support and create multiple rooms
Stars: ✭ 13 (-86.17%)
Mutual labels:  react-hooks
yii2-fullcalendar
Yii 2 component for easy fullcalendar integration
Stars: ✭ 21 (-77.66%)
Mutual labels:  calendar
use-smartcrop
React hook for smartcrop.js to content aware image cropping with points of interest and facial recognition.
Stars: ✭ 93 (-1.06%)
Mutual labels:  react-hooks
darim
🏕 A private journal service that supports client-side encryption
Stars: ✭ 33 (-64.89%)
Mutual labels:  calendar
shop-app
A shopping mobile application made with react native for Android.
Stars: ✭ 100 (+6.38%)
Mutual labels:  react-hooks

NPM

⚛️📆 Flexible React date range picker calendar with no dependencies



Example Image

Demo

Demo page at https://almogtavor.github.io/date-range-picker/

Read More

Main Features

  • Pick method - an option of configuring the component to be date picker, range picker, or ranges picker.
  • Days amount tab - an option of selecting a number of days backward from the current date immediately by choosing a number.
  • Colors palette - an option of determining the component's color (can be disabled removed).
  • Language - English and Hebrew support.
  • Select all button - an option of selecting all of the current board's dates. Whether viewing dates, months, or years.
  • Boards number - an option of configuring components to be in one board or two boards.

Installation

$ npm i dates-picker

Usage

function callbackFunction(dates) {
    console.log(`The range of dates that got picked is: ${dates.text}`);
    console.log(`The min date that got picked is: ${dates.minDate}`);
    console.log(`The max date that got picked is: ${dates.maxDate}`);
    console.log(`The number of days that got picked is: ${dates.numberOfDaysPicked}`);
    console.log(`All dates: ${dates.allDates}`);
}

function MyComponent() {
    return (
      <DateRangePicker 
        callback={callbackFunction}
      />
    )
  }
}

Options

Property Type Allowed Values Default Value Description
language String English, Hebrew English component's language. currently support English and Hebrew. Notice Languages such Hebrew changes the whole component from left to right to right to left.
colorsPalette String enabled, disabled enabled by enabling colors palette you can choose the component's color.
format String any combination of 2 Ds, 2 Ms and 2\4 Ys with other DD-MM-YYYY the format of the dates.
selectAllButton String enabled, disabled enabled depends on current board's view (dates, months, or years), select all enabled items.
startDate date date object new Date(1900, 0, 0) calendar's start date.
endDate date date object new Date(2025, 0, 0) calendar's end date.
firstDayOfWeekIndex int 0 - 6 0 (sunday) first day of the week (etc monday, sunday).
pickMethod String date, range, ranges range date means picking one day (on one board). range is to peak dates two dates. ranges is to pick an array of ranges (with view option on hover).
defaultColor String any color format item #2196f3 default component's color. becomes the first option on colors palette.
daysAmountTab String enabled, disabled disabled by enabling, there will be a button on the left that you can open and choose prepared range, or days amount up to today.
boardsNum int 1, 2 2 by specifing you can choose the component's boards number.

Future Plans

  • Add simple and intuitive time picker option (by list\ or visual clock\ both).
  • Tooltips for buttons explanation (for example on select all button).
  • On non-component-screen click, close component.
  • Go back button on non-dates mode (or on all modes for previous). When the user is in month's or year's mode, add an option to return to dates mode without choosing any value.
  • Component & button sizes parameters
  • Border radius parameter
  • An option to cancel picked range from the input label
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].