Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
backstage-modal
Advanced tools
Backstage Modal React component
npm install backstage-modal --save
<Modal />
Main component that includes the overlay, the modal window and its contents.
Use children
to render the inner content of the modal window.
isOpen
: flag indicating wether the modal is opened or not (default false
);title
: title of the modal window;width
: CSS width of the modal window (default 500px
);onCloseRequest
: callback called when the user attempts to close the modal:
<ModalBody />
Optional child component to wrap content and get some nice default styles.
<ModalFooter />
Optional child component to wrap content and get some nice default styles along with a separator.
import React, {Component} from 'react';
import ReactDOM from "react-dom";
import Modal from 'backstage-modal';
class Example extends Component {
constructor(){
this.state = {
isOpen: true
};
}
onCloseRequest(){
this.setState({isOpen: false});
}
render(){
return (
<Modal isOpen={this.state.isOpen} title="Backstage Modal" onCloseRequest={() => this.onCloseRequest}>
<ModalBody>
<p>Body</p>
</ModalBody>
<ModalFooter>
<button type="button">OK</button>
</ModalFooter>
</Modal>
);
}
}
ReactDOM.render(<Example />, document.getElementById('container'));
FAQs
backstage modal
The npm package backstage-modal receives a total of 2,795 weekly downloads. As such, backstage-modal popularity was classified as popular.
We found that backstage-modal demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.