All Projects → natscale → react-calendar

natscale / react-calendar

Licence: MIT license
A no dependencies, lightweight and feature-rich ⚡ calendar component for react.

Programming Languages

typescript
32286 projects
CSS
56736 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to react-calendar

Calendarview
An Easy to Use Calendar for iOS (Swift 5.0)
Stars: ✭ 429 (+530.88%)
Mutual labels:  datepicker, date-picker, calendar-component, calendar-view
Calendarview
Android上一个优雅、万能自定义UI、仿iOS、支持垂直、水平方向切换、支持周视图、自定义周起始、性能高效的日历控件,支持热插拔实现的UI定制!支持标记、自定义颜色、农历、自定义月视图各种显示模式等。Canvas绘制,速度快、占用内存低,你真的想不到日历居然还可以如此优雅!An elegant, highly customized and high-performance Calendar Widget on Android.
Stars: ✭ 7,998 (+11661.76%)
Mutual labels:  calendar-component, calendar-view, calendar-widget, calendarview
Date Picker
Duet Date Picker is an open source version of Duet Design System’s accessible date picker. Try live example at https://duetds.github.io/date-picker/
Stars: ✭ 1,325 (+1848.53%)
Mutual labels:  datepicker, date-picker, calendar-component
Angular Mydatepicker
Angular datepicker and date range picker 📅
Stars: ✭ 76 (+11.76%)
Mutual labels:  datepicker, daterangepicker, date-picker
Vue Mj Daterangepicker
🗓Vue.js date range picker with multiples ranges and presets (vue 2.x)
Stars: ✭ 48 (-29.41%)
Mutual labels:  datepicker, daterangepicker, date-picker
praecox-datepicker
A date picker built with Svelte.Simple and flexible, supporting functions such as single selection, multiple selection, disabling, and marking.
Stars: ✭ 66 (-2.94%)
Mutual labels:  datepicker, datepicker-component, calendar-component
Cvcalendar
A custom visual calendar for iOS 8+ written in Swift (>= 4.0).
Stars: ✭ 3,435 (+4951.47%)
Mutual labels:  calendar-component, calendar-view, calendarview
Blazor.PersianDatePicker
A free JavaScript Jalali (Persian) and Gregorian (Miladi) dual datepicker library for Blazor applications
Stars: ✭ 40 (-41.18%)
Mutual labels:  datepicker, datepicker-component, calendar-component
Primedatepicker
PrimeDatePicker is a tool that provides picking a single day, multiple days, and a range of days.
Stars: ✭ 292 (+329.41%)
Mutual labels:  datepicker, calendar-component, calendar-view
React Nice Dates
A responsive, touch-friendly, and modular date picker library for React.
Stars: ✭ 924 (+1258.82%)
Mutual labels:  datepicker, daterangepicker, date-picker
Calendarview
A highly customizable calendar library for Android, powered by RecyclerView.
Stars: ✭ 2,862 (+4108.82%)
Mutual labels:  datepicker, daterangepicker, calendarview
django-flatpickr
Flatpicker based DatePickerInput, TimePickerInput and DateTimePickerInput with date-range-picker functionality for django >= 2.0
Stars: ✭ 41 (-39.71%)
Mutual labels:  daterangepicker, date-picker
Datepicker
仿滴滴出行预约打车IOS风格3D时间选择器 🌲
Stars: ✭ 118 (+73.53%)
Mutual labels:  datepicker, date-picker
VRCalendarView
Flexible calendar view
Stars: ✭ 33 (-51.47%)
Mutual labels:  calendar-component, calendarview
Ngx Mydatepicker
Angular 2+ attribute directive datepicker
Stars: ✭ 123 (+80.88%)
Mutual labels:  datepicker, date-picker
Material Vue Daterange Picker
a date-range-picker follows the Material Design spec powered by vue.js (alpha)
Stars: ✭ 64 (-5.88%)
Mutual labels:  datepicker, daterangepicker
Datepicker
Get a date with JavaScript! A datepicker with no dependencies.
Stars: ✭ 212 (+211.76%)
Mutual labels:  datepicker, date-picker
monthyear-picker
Month and Year picker library for Android
Stars: ✭ 34 (-50%)
Mutual labels:  datepicker, date-picker
React Native Dates
React Native date / daterange picker and calendar
Stars: ✭ 145 (+113.24%)
Mutual labels:  datepicker, daterangepicker
Vuejs Datepicker
A simple Vue.js datepicker component. Supports disabling of dates, inline mode, translations
Stars: ✭ 2,529 (+3619.12%)
Mutual labels:  datepicker, date-picker

@natscale/react-calendar language liscence version download

A no dependency, lightweight and feature-rich calendar component for react.

Note - The library is still under active development so the API might change before the first stable release. We do not recommend to use it in production yet.

See Online Demo

The link above is a test page to be able to share the development progress with other people while it's in the beta phase. We are working on an official website for it.

📚 Table of Contents

Features

  • 🗓 Date Range
  • 🗓 Fixed Date Range
  • 🗓 Multiple Dates
  • 🗓 Highlight Custom Dates
  • 🗓 Disable Custom Dates
  • 🗓🗓 Dual Calendar
  • 🗓 Add Your Own Shorcuts
  • 🦄 Easy to Theme
  • No Dependencies
  • 💻 SSR Compatible
  • 🔩 Lots of Easy Customizations
  • 🕊 Lightweight - less than 20kb

📦 Installation

The calendar component uses react hooks so it requires the react version to be at least 16.8.0. Make sure you have a react version that is equal to or greater than that.

With yarn

yarn add @natscale/react-calendar

With NPM

npm install @natscale/react-calendar

🚀 Usage

To add the default stylesheet. You can import it from the node_modules folder.

import '@natscale/react-calendar/dist/main.css';

With Typescript

import React, { useState, useCallback } from 'react';
import { Calendar } from '@natscale/react-calendar';

function App() {
  const [value, setValue] = useState();

  const onChange = useCallback(
    (value) => {
      setValue(value);
    },
    [setValue],
  );

  return (
    <div>
      <Calendar value={value} onChange={onChange} />
    </div>
  );
}

With Javascript

import React, { useState, useCallback } from 'react';
import { Calendar } from '@natscale/react-calendar';

function App() {
  const [value, setValue] = useState();

  const onChange = useCallback(
    (value) => {
      setValue(value);
    },
    [setValue],
  );

  return (
    <div>
      <Calendar value={value} onChange={onChange} />
    </div>
  );
}

📝 Motivation

The idea of creating a calendar component was a result of trying to find something online which could handle my requirements without needing me to hack away at the component's internals and possibly breaking it;

ergo, this react calendar which aims to be a one stop shop for every potential use case a web developer could think of when it comes to calendars and dates. All the featues I included are ones I thought would be most required from a calendar component. Any suggestions or updates are always welcome to make it more robust.

🛠️ Support

Please open an issue for support.

📜 License

MIT © Tushar Sharma

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