Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
react-window-modal
Advanced tools
A React wrapper for the window-modal package;
A modal window element designed to be smooth, clean and user friendly.
Includes many features and options!
Demo
Feature and improvement suggestions welcome!
!important
)npm install react-window-modal
then
const WindowModal = require("react-window-modal");
or
import WindowModal from "react-window-modal";
render() {
return <WindowModal>contents</WindowModal>
}
* All props are optional
Name | Type | Description |
---|---|---|
title | string | The title for the window |
icon | IWindowIcon | An icon to use for the window |
pos | IPoint | The starting position for the window |
size | IPoint | The starting size for the (must be greater than 200!) |
resizable | boolean | If false, the window cannot be resized by the user |
movable | boolean | If false, the window cannot be moved by the user |
compact | boolean | If true, the style for the window's title bar will have less spacing |
hideClose | boolean | If true, no close button will be added to the window |
hideMinimize | boolean | If true, no minimize button will be added to the window |
Name | Type | Description |
---|---|---|
onClose | Function | Called when the window is closed |
onMinimize | Function | Called when the window is minimized |
onUnminimize | Function | Called when the window is unminimized |
onResize | Function | Called when the window is resized |
onMove | Function | Called when the window is moved |
onFocus | Function | Called when the window is focused |
onBlur | Function | Called when the window is blurred |
FAQs
A React wrapper for the window-modal package
We found that react-window-modal 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.