
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
react-overlapping-panels
Advanced tools
Gestures-driven navigation UI for React.js
This is a Javascript / React implementation of Discord's OverlappingPanels.
Gesture-based navigation allows us to create more natural interactions and avoids conflict with native gesture navigation.
The current implementation relies almost entirely on CSS, inspired by bree's css-drawer-snap. By using CSS scroll snap we rely on the browser to resolve which scrollbar should be scrolled at what time, so you avoid sidebars opening when scrolling vertically through something such as messages or when scrolling sideways through another element.
npm install --save react-overlapping-panels
yarn add react-overlapping-panels
import React, { Component } from 'react'
import { OverlappingPanels, ShowIf } from 'react-overlapping-panels'
import 'react-overlapping-panels/dist/index.css'
function MyComponent() {
return (
<OverlappingPanels
width={720}
height={640}
leftPanel={{
component: <span>I am the left panel.</span>,
width: 300
}}
rightPanel={{
component: <span>I am the right panel.</span>,
width: 250
}}
bottomNav={{
component: <span>hello!</span>,
height: 40,
showIf: ShowIf.Left
}}>
<h1>main content!</h1>
</OverlappingPanels>
)
}
// See example/src/App.tsx for more working examples.
Clone the project using:
git clone https://gitlab.insrt.uk/insert/overlapping-panels
Build and watch files for the library:
yarn start
And build and watch files for the example:
cd example
yarn start
Example (REVOLT PWA): https://autumn.revolt.chat/attachments/GBokkPYJIJqsaXKndNZPkr2xD5H33t5QVAYKsRCqRc/simplescreenrecorder-2021-06-14_14.42.20.mp4
(The following ones are a bit choppy since I recorded them with Peek instead of SSR)
Example in REVOLT: https://autumn.revolt.chat/attachments/ypmI99sJqyeBEt5LI3dNXSE5WIUPlg1kp4XY7NAbnq/Peek%202021-06-14%2013-32.webm Demo taken from examples: https://autumn.revolt.chat/attachments/soJ5hEJYW2vG2kpxlrE98BI8aZu0NY8FMHeYAfL1kH/Peek%202021-06-14%2014-22.webm
FAQs
Gestures-driven navigation UI for React.js
The npm package react-overlapping-panels receives a total of 246 weekly downloads. As such, react-overlapping-panels popularity was classified as not popular.
We found that react-overlapping-panels 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
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.