The React Calendar is a component to display the date and days of the week. It provides month, year, and decade view options to quickly navigate to the desired date. It supports minimum dates, maximum dates, and disabled dates to restrict the date selection.
You can restrict the user to choosing a date from a predetermined range of dates. Any date in the React calendar can be disabled to make it inactive.
The React Calendar component lets users show the Islamic calendar(Hijri calendar) in addition to the Gregorian calendar.
Calendar has a highly responsive layout and an optimized design for desktops, touchscreens, and smart phones. It works well on all mobile phones that use iOS, Android, or Windows OS.
Cutting-edge design with several built-in themes, such as Fluent, Tailwind CSS, Bootstrap, Material, and Fabric. Utilize the online Theme Studio tool to customize themes easily.
With built-in globalization options,a culture-specific date format and first day of the week can be chosen. The text of the month, day, and today button can be translated to any supported language.
Easily get started with the React Calendar using a few simple lines of TSX code example as demonstrated below. Also explore our React Calendar Example that shows you how to render and configure a Calendar in React.
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import { CalendarComponent, ChangedEventArgs } from '@syncfusion/ej2-react-calendars';
import { SampleBase } from '../common/sample-base';
import './default-style.css';
export class Default extends SampleBase<{}, {}> {
public onchange(args: ChangedEventArgs): void {
/*Displays selected date in the label*/
(document.getElementById('date_label') as HTMLElement).textContent = 'Selected Value: ' + args.value.toLocaleDateString();
}
render() {
return (
<div className='control-pane'>
<div className='control-section'>
<div className='calendar-control-section'>
<CalendarComponent change={this.onchange} ></CalendarComponent>
<label id='date_label'>Selected Value:</label>
</div>
</div>
</div>
)}
}
Select only the month or year as a value (month picker or year picker) in the react calendar picker.
You can restrict the React Calendar component so that only a date value within a specific range of dates can be entered or selected by specifying the minimum and maximum date options.
Configure the react calendar to allow users to select single or multiple date values (sequence or random date selection).
Update the culture-specific date format and first day of the week, and translate the text of month, day,and today buttons to any supported language with built-in globalization features.
Automatically update the first day of the week based on the specified culture or change it based on your application requirements.
Disable any date in the react calendar scheduler to make it inactive. Easily prevent the selection of weekends and holidays by disabling them.
Apart from the standard, built-in theme, the React-Calendar component provides complete control over its appearance, allowing you to customize the style to suit your application.
Highlight any date in a year or every weekend in a month as special days using custom styling.
Show the week number of a selected date in the calendar by enabling the week number option in react week calendar.
The React Calendar component ensures that every cell is accessible using the keyboard. Major features like sort, select, and edit can be performed using keyboard commands alone; no mouse interaction is required. This helps in creating highly accessible applications using this component.
The React Calendar view has complete WAI-ARIA accessibility support. The Calendar UI includes high-contrast visual elements that help visually impaired people to have the best viewing experience. Also, valid UI descriptions are easily accessible through assistive technologies such as screen readers.
Right-to-left rendering allows displaying the text and layout of the Calendar from right to left. This improves the user experience and accessibility for RTL languages.
Calendar component is also available in Blazor, Angular, Vue, and JavaScript frameworks. Check out the different Calendar platforms from the links below,
The React Calendar works well with all modern web browsers such as Chrome, Firefox, Microsoft Edge, Safari, and Opera.
Syncfusion React Calendar provides the following features:
You can find our React Calendar demo here.
No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue, 5 or fewer developers, and 10 or fewer total employees.
A good place to start would be our comprehensive getting started documentation.
Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.