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.
@mantine/dates
Advanced tools
@mantine/dates is a part of the Mantine library, which provides a set of React components and hooks for building modern web applications. The @mantine/dates package specifically focuses on date and time-related components, offering a variety of tools to handle date picking, time picking, and calendar functionalities.
DatePicker
The DatePicker component allows users to select a date from a calendar popup. It can be customized with various props to fit different use cases.
import { DatePicker } from '@mantine/dates';
function Demo() {
return <DatePicker placeholder="Pick a date" label="Event date" />;
}
TimeInput
The TimeInput component provides a way for users to input a time value. It supports various formats and can be customized to match the application's design.
import { TimeInput } from '@mantine/dates';
function Demo() {
return <TimeInput label="Event time" defaultValue={new Date()} />;
}
Calendar
The Calendar component displays a full calendar view, allowing users to navigate through months and select dates. It can be used for more complex date-related functionalities.
import { Calendar } from '@mantine/dates';
function Demo() {
return <Calendar />;
}
DateRangePicker
The DateRangePicker component enables users to select a range of dates. This is useful for applications that require start and end date selections, such as booking systems.
import { DateRangePicker } from '@mantine/dates';
function Demo() {
return <DateRangePicker label="Select date range" placeholder="Pick dates" />;
}
react-datepicker is a popular date picker component for React. It offers a wide range of customization options and supports both date and time selection. Compared to @mantine/dates, it is more focused on date picking functionalities and has a larger community and more extensive documentation.
react-day-picker is a flexible date picker component for React. It provides a highly customizable calendar interface and supports various date selection modes. While @mantine/dates offers a more integrated solution with other Mantine components, react-day-picker excels in providing a highly customizable and standalone date picking experience.
react-calendar is a simple and lightweight calendar component for React. It focuses on providing a straightforward calendar interface with basic date selection features. Compared to @mantine/dates, react-calendar is more lightweight and easier to integrate into projects that require minimalistic calendar functionalities.
Calendars, date and time pickers
# With yarn
yarn add @mantine/core @mantine/hooks @mantine/dates dayjs
# With npm
npm install @mantine/core @mantine/hooks @mantine/dates dayjs
MIT
FAQs
Calendars, date and time pickers based on Mantine components
The npm package @mantine/dates receives a total of 192,884 weekly downloads. As such, @mantine/dates popularity was classified as popular.
We found that @mantine/dates demonstrated a healthy version release cadence and project activity because the last version was released less than 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
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.