![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
side-panel-menu-thing
Advanced tools
Good option for mobile menus, general content reveals, or whatever else.
https://henrygd.me/side-panel-menu-thing
Touch responsive, easy to implement, fairly lightweight, and MIT licensed. Good option for mobile menus, general content reveals, or whatever else.
dist/side-panel-menu-thing.mjs
dist/side-panel-menu-thing.umd.js
dist/side-panel-menu-thing.min.js
src/side-panel-menu-thing.js
$ npm install side-panel-menu-thing
Grab the few lines of CSS from dist/side-panel-menu-thing.css
and add to your styles, or import from the package.
import sidePanel from 'side-panel-menu-thing'
// target and content required, others optional
const menu = sidePanel({
// target container (where it's mounted and listens for touch)
target: document.body,
// element mounted in panel (will be removed if it exists in DOM)
content: document.getElementById('content'),
// width of panel
width: 400,
// open / close animation time
duration: 450,
// fixed to screen
fixed: true,
// open on left
left: false,
// whether to open on touch drag
dragOpen: true,
// prevent HTML scrolling when fixed
preventScroll: true,
// custom css class(es) added to wrap element (separate multiple with spaces)
wrapClass: '',
// runs when the menu is opened (as soon as it's visible)
onShow(container) {
console.log('showing', container)
},
// runs when the menu is closed (as soon as it's hidden)
onHide() {
console.log('hidden')
},
})
// options are accessible / changeable afterward
menu.width
// 400
menu.width = 500
// 500
// show the panel
menu.show()
// hide the panel
menu.hide()
// destroy
menu.$destroy()
If you have a fixed menu set to open on drag, but want disable on a specific element, add a data-no-panel
attribute to the html.
<div class="slider" data-no-panel>
<div class="slide"></div>
<div class="slide"></div>
</div>
This project uses Svelte internally, so you can save some bytes by importing the source files. This may happen automatically if your project picks up the svelte field in package.json, but to be sure you can use the import statement below.
import sidePanel from 'side-panel-menu-thing/src/side-panel-menu-thing'
If you want a proper standalone component with a slot, let me know.
MIT
FAQs
Good option for mobile menus, general content reveals, or whatever else.
We found that side-panel-menu-thing 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
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.