
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
react-bottom-sheet
Advanced tools
$ npm install react-bottom-sheet --save
import React from 'react';
import BottomSheet from 'react-bottom-sheet';
export default class Test extends React.Component {
componentWillMount() {
this.setState({
showSheet: false,
});
}
render() {
return (
<BottomSheet open={this.state.showSheet} onRequestClose={() => this.setState({ showSheet: false })}>
<div>
<h1>Bottom sheet modal content</h1>
<ul>
<li>Animates from bottom to top</li>
<li>If the content height is more than the height of the device it will be scrollable.</li>
<li>Clicking on the grey area will close the modal</li>
</ul>
</div>
</BottomSheet>
);
}
}
Property | Type | Default | Description |
---|---|---|---|
className | string | Bottom sheet content className. | |
open | bool | false | If set to true the bottom sheet will open. |
onRequestClose* | func | This method will be called when an action is made to close this bottom sheet. | |
For example clicking on the overlay. | |||
zIndex | number | css z-index value for the bottom sheet | |
maxHeight | string | '100vh' | css max-height value for the bottom sheet. |
Numbers are not allowed, you have to pass 10px as a string instead | |||
minHeight | string | css min-height value for the bottom sheet. | |
Numbers are not allowed, you have to pass 10px as a string instead | |||
bottomSheetHeader | element | If passed this element will render above the content. | |
bottomSheetFooter | element | If passed this element will render under the content. |
To contribute, follow these steps:
npm install
npm start
localhost:3000
MIT
FAQs
React Bottom Sheet
The npm package react-bottom-sheet receives a total of 80 weekly downloads. As such, react-bottom-sheet popularity was classified as not popular.
We found that react-bottom-sheet 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
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.