
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-smooth-sheet
Advanced tools

A fully responsive and highly customizable bottom sheet component for React applications, designed to provide smooth interactions, seamless animations, and an intuitive user experience. Easily adaptable to various use cases, it supports gesture-based controls, dynamic styling, and effortless integration into any project.
You can install the package using npm or yarn:
npm install react-smooth-sheet
or
yarn add react-smooth-sheet
BottomSheet is a highly versatile and intuitive React component built to deliver a seamless and interactive bottom sheet experience. Designed with flexibility in mind, it offers extensive customization options, smooth animations, and gesture-based interactions. Whether used for modals, action sheets, or additional UI elements, BottomSheet ensures effortless integration while maintaining optimal performance and responsiveness across all devices.
Key Features:
For more details, see CHANGELOG.md.
import React, { useState } from "react";
import BottomSheet from "react-smooth-sheet";
function App() {
const [isOpen, setIsOpen] = useState(false);
return (
<div className='App'>
<button onClick={() => setIsOpen(true)}>Open BottomSheet</button>
<BottomSheet
isOpen={isOpen}
sendDataToParent={(open) => setIsOpen(open)}
overlayDark={1}
overlayBlur={2}
backgroundColor={"lightGray"}
>
<div style={{ display: "flex", flexDirection: "column" }}>
<div>Your content </div>
</div>
</BottomSheet>
</div>
);
}
export default App;
| Prop | Type | Default | Description |
|---|---|---|---|
sendDataToParent | function | false | Function to send the state to the parent component. |
isOpen | boolean | false | Determines if the bottom sheet is open or closed. |
overlayDark | number | 0 | Sets the opacity of the overlay. |
overlayBlur | number | 2 | Sets the blur effect for the overlay. |
backgroundColor | string | "lightGray" | Sets the background color of the bottom sheet. |
Functions
: Shows the BottomSheet.: Hides the BottomSheet.Events
: Detects the touch start event.: Detects the touch move event.: Detects the touch end event.Ensure the isOpen prop is managed by the parent component to control the visibility.
Use the sendDataToParent function to update the parent state when the BottomSheet is closed.
Q: How can I customize the BottomSheet?
A: You can customize it using the props provided like overlayOpacity, overlayBlur, and backgroundColor.
Q: How do I close the BottomSheet?
A: Use the sendDataToParent function to change the state in the parent component.
Contributions are welcome! Please create an issue or a pull request.
For any questions or feedback, please contact me via:
Email: [hossein.azp94@gmail.com]
LinkedIn: [https://www.linkedin.com/in/hosseinazadpour]
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
A customizable bottom sheet component for React applications.
The npm package react-smooth-sheet receives a total of 3 weekly downloads. As such, react-smooth-sheet popularity was classified as not popular.
We found that react-smooth-sheet demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.