
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-side-sheet-pro
Advanced tools
A flexible React SideSheet component for displaying contextual information.
A flexible React SideSheet component for displaying contextual information.
This panel can slide in from either the left or right side of the screen and is typically triggered by user actions like clicking a row in a table. It supports nested sheets, easy state management, and customizable layouts for a seamless and intuitive user experiences.
React 0.14.0 - 19.x.x
Install the widget via npm or yarn:
npm install react-side-sheet-pro
# or
yarn add react-side-sheet-pro
import React from 'react'
import { SideSheet, SideComponent, useSideSheet } from 'react-side-sheet-pro'
import 'react-side-sheet-pro/dist/index.css'
const UserDetails: SideComponent<{ user: any }> = ({
user,
sideId,
close,
}) => (
<>
<SideSheet.Header title={user.name} onClose={() => close(sideId)} />
<SideSheet.Content className="sidesheet-padding sidesheet-centered">
<div className="sidesheet-card">
<p>
<strong>ID:</strong> {user.id}
</p>
<p>
<strong>Name:</strong> {user.name}
</p>
<p>
<strong>Email:</strong> {user.email}
</p>
</div>
</SideSheet.Content>
</>
)
UserDetails.defaultWidth = 900
export const App = () => {
const { open } = useSideSheet()
const handleOpenSideSheet = () => {
open(
(props) => (
<UserDetails
{...props}
user={{
id: 1,
name: 'John Doe',
email: 'john@doe.com',
}}
/>
),
{
// you can override the default width set on the component
width: 600,
}
)
}
return (
<button onClick={handleOpenSideSheet}>Open Side Sheet</button>
)
}
// Wrap your app with the SideSheet.Provider to manage side sheets globally
export default () => (
<SideSheet.Provider>
<App />
</SideSheet.Provider>
)
Sheet.ProviderSheet provider component that manages the state of all side sheets in your application. It should wrap your main application component.
Sheet.HeaderSheet header component that displays the title and can include custom actions. It also provides custom onClick function for a button to close the sheet.
| Name | Required | Default | Description |
|---|---|---|---|
title | yes | Title of the header. | |
onClose | no | undefined | Callback function to close the sheet. |
actions | no | undefined | Custom actions to render in the header. |
className | no | undefined | Custom CSS class for additional styling. |
Sheet.ContentSheet content component that wraps the main content of the side sheet. Can be styled using custom classes.
| Name | Required | Default | Description |
|---|---|---|---|
children | yes | Content to display inside the side sheet. | |
className | no | undefined | Custom CSS class for additional styling. |
Sheet.FooterSheet footer component that can be used to display actions or additional information at the bottom of the side sheet. Can be styled using custom classes.
| Name | Required | Default | Description |
|---|---|---|---|
children | yes | Content to display inside the footer. | |
className | no | undefined | Custom CSS class for additional styling. |
cd playground/ && npm start
We welcome contributions! If you'd like to help improve this project, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
FAQs
A flexible React SideSheet component for displaying contextual information.
We found that react-side-sheet-pro demonstrated a healthy version release cadence and project activity because the last version was released less than 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
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.