Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
materialui-daterange-picker
Advanced tools
A react date range picker implementation using @material-ui.
A react date range picker implementation using @material-ui.
Check out the project running at https://pedro-lb.github.io/materialui-daterange-picker/
npm install materialui-daterange-picker --save
# or with yarn
yarn add materialui-daterange-picker
import React from "react";
import { DateRangePicker, DateRange } from "materialui-daterange-picker";
type Props = {}
const App: React.FunctionComponent<Props> = props => {
const [open, setOpen] = React.useState(false);
const [dateRange, setDateRange] = React.useState<DateRange>({});
const toggle = () => setOpen(!open);
return (
<DateRangePicker
open={open}
toggle={toggle}
onChange={(range) => setDateRange(range)}
/>
);
}
export default App;
interface DateRange {
startDate?: Date,
endDate?: Date
}
interface DefinedRange {
label: string,
startDate: Date,
endDate: Date
}
Name | Type | Required | Default value | Description |
---|---|---|---|---|
onChange | (DateRange) => void | required | - | handler function for providing selected date range |
toggle | () => void | required | - | function to show / hide the DateRangePicker |
initialDateRange | DateRange | {} | initially selected date range | |
minDate | `Date | string` | 10 years ago | |
maxDate | `Date | string` | 10 years from now | |
definedRanges | DefinedRange[] | - | custom defined ranges to show in the list | |
definedRanges | DefinedRange[] | - | custom defined ranges to show in the list | |
closeOnClickOutside | boolean | true | defines if DateRangePicker will be closed when clicking outside of it | |
wrapperClassName | object | defines additional wrapper classes |
FAQs
A react date range picker implementation using @material-ui.
The npm package materialui-daterange-picker receives a total of 4,275 weekly downloads. As such, materialui-daterange-picker popularity was classified as popular.
We found that materialui-daterange-picker 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.