Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@react-aria/calendar
Advanced tools
@react-aria/calendar is a React library that provides accessible calendar components. It is part of the React Aria collection of hooks and components designed to help developers build accessible web applications. The package includes features for date selection, date range selection, and calendar navigation.
Date Selection
This feature allows users to select a single date from the calendar. The selected date is logged to the console.
import { Calendar } from '@react-aria/calendar';
function MyCalendar() {
return (
<Calendar
onSelect={(date) => console.log('Selected date:', date)}
/>
);
}
Date Range Selection
This feature allows users to select a range of dates. The selected date range is logged to the console.
import { RangeCalendar } from '@react-aria/calendar';
function MyRangeCalendar() {
return (
<RangeCalendar
onSelect={(range) => console.log('Selected range:', range)}
/>
);
}
Calendar Navigation
This feature allows users to navigate through the calendar. The navigated date is logged to the console.
import { Calendar } from '@react-aria/calendar';
function MyNavigableCalendar() {
return (
<Calendar
onNavigate={(date) => console.log('Navigated to:', date)}
/>
);
}
react-datepicker is a popular date picker component for React. It offers a wide range of features including date and time selection, date range selection, and custom date formats. Compared to @react-aria/calendar, react-datepicker has a more extensive set of features but may not be as focused on accessibility.
react-day-picker is a flexible date picker component for React. It supports single date selection, date range selection, and custom styling. While it provides a lot of customization options, it may require more effort to ensure accessibility compared to @react-aria/calendar.
react-calendar is a simple and lightweight calendar component for React. It supports date selection and navigation. It is easy to use and integrate but may lack some of the advanced features and accessibility focus of @react-aria/calendar.
This package is part of react-spectrum. See the repo for more details.
FAQs
Spectrum UI components in React
The npm package @react-aria/calendar receives a total of 560,987 weekly downloads. As such, @react-aria/calendar popularity was classified as popular.
We found that @react-aria/calendar demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.