![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
argon-calendar
Advanced tools
A customizable calendar component hackable to its core.
npm i argon-calendar
Argon calendar is not a regular calendar plugin. It's a a minimalistic and customizable library with a basic set of APIs. It uses native browser APIs under the hood.
If you are looking to build your own calendar plugin, this is the place where you start.
import ArgonCalendar from 'argon-calendar';
const calendar = new ArgonCalendar({
target: '#calendarTarget', // Target where calendar should be rendered. [mandatory]
weekStartsFrom: 0, // Default: 0. 0 is Sunday, 1 is Monday, and so on... [optional]
wrapTarget: false, // True for input types. Wrap existing target and place calendar inside the wrapping element. [optional]
numberOfCalendars: 2, // Default: 1. Number of months to be shown. [optional]
rangeSelection: false, // Default: false. If "true" then range selection is enabled. [optional]
showHeader: true, // Enable calendar header. [optional]
showFooter: true, // Enable calendar footer. [optional]
calendarWrap() { ... }, // To wrap current input element. Works only for "input" as a target. [optional]
calendarRoot() { ... }, // Customize calendar top level element. [optional]
calendarHeader() { ... }, // Customize calendar header. [optional]
calendarFooter() { ... }, // Customize calendar footer. [optional]
calendarBodyRoot() { ... }, // Customize calendar body element. [optional]
dayElement(day) { ... }, // Customize day element (Monday, Tuesday, Wednesday, etc.). [optional]
dateElement(dateString, dateObject) { ... }, // Customize date element. [optional]
monthElement(monthString, dateObject) { ... } // Customize month element. [optional]
});
calendar.prev(1 /* Optional skip parameter */); // Loads previous month(s). Optional "skip" parameter specifies how many months should be skipped.
calendar.next(1 /* Optional skip parameter */); // Loads next month(s). Optional "skip" parameter specifies how many months should be skipped.
A single date can be set if rangeSelection
is turned off.
calendar.setDate(/* Date object OR valid Date constructor arguments */);
A date range can be set if rangeSelection
is turned on.
calendar
.setStartDate(/* Date object OR valid Date constructor arguments */)
.setEndDate(/* Date object OR valid Date constructor arguments */) // These two methods will not re-render months
.jumpTo(/* Date object representing first month in the view */); // You should call this method to re-render months and diplay date range
const currentDate = calendar.getDate(); // Works if "rangeSelection" is turned off.
const startDate = calendar.getStartDate(); // Works if "rangeSelection" is turned on.
const endDate = calendar.getEndDate(); // Works if "rangeSelection" is turned on.
const today = calendar.getToday();
calendar.destroy();
Argon calendar does not support (and probably will never support) following features:
Please note that argon calendar does not assume how your calendar component should behave or look like. It provides a set of APIs which are crucial for a a calendar plugin to work. The plugin part is what you need to build yourself.
Argon calendar is a simple library, easy to understand and use. However, if you still face any issues, please feel free to log defects, provide suggestions or raise PRs. I would highly appreciate your contribution towards this project.
FAQs
A customizable calendar component hackable to its core.
We found that argon-calendar demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.