All Projects → mmehdinasiri → react-calendar-datetime-picker

mmehdinasiri / react-calendar-datetime-picker

Licence: MIT license
A simple and fast date and time picker component for React

Programming Languages

typescript
32286 projects
SCSS
7915 projects
CSS
56736 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to react-calendar-datetime-picker

Angular Moment Picker
Angular Moment Picker is an AngularJS directive for date and time picker using Moment.js.
Stars: ✭ 536 (+824.14%)
Mutual labels:  datetime, date, timepicker, datepicker, picker
Persianrangedatepicker
Persian range date picker for android.
Stars: ✭ 48 (-17.24%)
Mutual labels:  date, timepicker, datepicker, picker, persian
Zebra datepicker
A super-lightweight, highly configurable, cross-browser date / time picker jQuery plugin
Stars: ✭ 367 (+532.76%)
Mutual labels:  datetime, date, timepicker, datepicker
popoPicker
popoPicker是一个移动端3D滚轮日期时间和单项的选择器,支持无限循环滚动,不依赖第三方库
Stars: ✭ 26 (-55.17%)
Mutual labels:  date, timepicker, datepicker, picker
Vue Datetime
Mobile friendly datetime picker for Vue. Supports date and datetime modes, i18n and more.
Stars: ✭ 928 (+1500%)
Mutual labels:  datetime, date, timepicker, datepicker
vue-timeselector
🕒 Simply customizable powerful time picker for Vue.js
Stars: ✭ 41 (-29.31%)
Mutual labels:  datetime, date, timepicker, picker
imrc-datetime-picker
(Improved) React component datetime picker by momentjs 📆
Stars: ✭ 21 (-63.79%)
Mutual labels:  datetime, date, datepicker, picker
PersianDateRangePicker
Select range of date and time in the Persian
Stars: ✭ 41 (-29.31%)
Mutual labels:  datetime, datepicker, persian, persian-calendar
Circularpicker
CircularPicker is helpful for creating a controller aimed to manage any calculated parameter.
Stars: ✭ 73 (+25.86%)
Mutual labels:  datetime, timepicker, datepicker, picker
Rc Datetime Picker
React component for datetime picker by Moment.js
Stars: ✭ 85 (+46.55%)
Mutual labels:  datetime, date, datepicker, picker
Flatpickr
lightweight, powerful javascript datetimepicker with no dependencies
Stars: ✭ 14,575 (+25029.31%)
Mutual labels:  datetime, date, timepicker, datepicker
Vue Ctk Date Time Picker
VueJS component to select dates & time, including a range mode
Stars: ✭ 707 (+1118.97%)
Mutual labels:  date, timepicker, datepicker, picker
Angular Bootstrap Datetimepicker
Native Angular date/time picker component styled by Twitter Bootstrap
Stars: ✭ 1,289 (+2122.41%)
Mutual labels:  datetime, timepicker, datepicker, picker
Horizontalpicker
DatePicker horizontal con selección smooth por día para Android.
Stars: ✭ 116 (+100%)
Mutual labels:  datetime, date, datepicker, picker
Date Picker
📅 Custom responsive date picker widget for Android, written in Kotlin.
Stars: ✭ 146 (+151.72%)
Mutual labels:  datetime, date, picker
inquirer-datepicker-prompt
Datepicker prompt for inquirer.js
Stars: ✭ 24 (-58.62%)
Mutual labels:  datetime, date, datepicker
Calendarview
An Easy to Use Calendar for iOS (Swift 5.0)
Stars: ✭ 429 (+639.66%)
Mutual labels:  datetime, date, datepicker
svelty-picker
Simple date & time picker in svelte
Stars: ✭ 38 (-34.48%)
Mutual labels:  datetime, timepicker, datepicker
Jedate
jeDate V6.5.0 是一款原生JS开发的 不依赖任何第三方库 大众化的日期控件,她身兼多职,虽不是万能的,但是她却是功能强大多样的美少女,她除了包含 单双面板、区域选择、 多语言、日历固定、有效无效日期、日期时间戳转换、日期加减、限制时分秒、初始化日期加减N、日期标注点、设定年月(YYYY-MM)、日期范围限制、开始日期设定、自定义日期格式、当天的前后若干天返回、时分秒选择、智能响应、自动纠错、节日识别,操作等常规功能外,根据不同的日期格式,显示不同内容,还拥有更多趋近完美的解决方案。更多的是需要你与她的亲密接触与呵护!
Stars: ✭ 433 (+646.55%)
Mutual labels:  datetime, date, datepicker
Tempus Dominus
A powerful Date/time picker widget.
Stars: ✭ 6,900 (+11796.55%)
Mutual labels:  datetime, datepicker, picker

react-calendar-datetime-picker

The Simple and fast English and Persian calender for React

version: "1.6.3" NPM JavaScript Style Guide

⚙️ Install

npm install react-calendar-datetime-picker
or
yarn add react-calendar-datetime-picker

⚡️ Usage

import React from 'react'

import DtPicker from 'react-calendar-datetime-picker'
import 'react-calendar-datetime-picker/dist/index.css'

const App = () => {
  const [date, setDate] = useState(null)
  return <DtPicker onChange={setDate} />
}

📄 Documentation

Documentation with examples

🎯 Features

  • Supports Gregorian and Jalali calender
  • Uses context api to share data
  • Supports three types of calender: single day - date range - multiple dates
  • Fully customizable
  • Supports maximum and minimum dates
  • Capability to add a list of disabled dates
  • Supports time for single and range type
  • Capability to mark weekends
  • Function called for change, open and close events
  • Supports Typescript


🔧 Props

Property Type Required Default Description
onChange func true - A function that returns an object of selected date/dates.
initValue Day null null
type string single You can choose the selection type that you need to use. There exist 3 types: "single", "range", "multi"
local string en This date picker supports both Gregorian and Jalali calenders.To select Gregorian calendar you have to set "local" to "en" and to "fa" for Jalali.
withTime boolean false Should you need to use time in your date picker you can set this prop to true.This prop works only in single and range types.
showTimeInput boolean false Helps you to show time in input date picker
showWeekend boolean false Marks weekends by changing the color.
clearBtn boolean false Add a button to your input to clear you calendar initial date/dates.
isRequired boolean false This prop makes your input as a required field in the form validation
todayBtn boolean false A button to move fast to the date of today in the calendar.
onCalenderChange func A callback that runs when the calendar value is changed
onCalenderShow func A callback that runs when the calendar opens
onCalenderHide func A callback that runs when the calendar closes
maxDate Day You can set this prop to limit the maximum date that the user can select.Periods partially overlapped by maxDate will also be selectable, although React-calendar-dateTime-picker will ensure that no later date is selected.
minDate Day You can set this prop to limit the minimum date that the user can select. Periods partially overlapped by minDate will also be selectable, although React-calendar-dateTime-picker will ensure that no earlier date is selected.
disabledDates Day[] A list of dates that you want the user not to select.
isDisabled boolean false Use to disable the calendar input
yearListStyle string grid Use to change year item list style(accepted value: grid, list)

🎨 Customization

Property Type Default Description
placeholder string "select" To change input date picker placeholder
inputClass string To change calendar's input style
clearBtnClass string To change calendar's clear button style
calenderModalClass string To change calendar's main modal style
headerClass string To change calendar's green header style
timeClass string To change calendar's time view style
daysClass string To change calendar's days view style
monthsClass string To change calendar's months view style
yearsClass string To change calendar's years view style
NextBtnIcon svg as component ">" To change next month button icon.
PreviousBtnIcon svg as component "<" To change previous month button icon.
nextMonthBtnTitle string "next" To change next month button title(shows by hover).
previousMonthBtnTitle string "previous" To change previous month button title(shows by hover).
fromLabel string "from" Starting date label in input result(works only in range type).
toLabel string "to" Ending date label in input result(works only in range type).
clockFromLabel string "from" Title for starting time in the time component(works only in range type).
clockToLabel string "to" Title for ending time in the time component(works only in range type).
clockLabel string "clock" Label for time in the time component(works in single and range type).



✔️ bundle size

You can check out this package bundle size in this Link

🙇 Special Thanks

Thanks to jalaali-js, the only dependency of this date picker.

📋 License

MIT © mehdinasiri

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].