npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@codeshumon/popup-menu

v1.0.6

Published

A lightweight, customizable popup menu component for React with built-in CSS styling and TypeScript support. Features automatic positioning, smooth animations, and responsive design for modern web applications.

Readme

or

yarn add @codeshumon/popup-menu

function App() { return ( <PopupMenu trigger={<button>Open Menu</button>} > <div onClick={() => console.log('Option 1')}>Option 1</div> <div onClick={() => console.log('Option 2')}>Option 2</div> <div onClick={() => console.log('Option 3')}>Option 3</div> </PopupMenu> ); }

export default App;

function App() { return ( <PopupMenu trigger={<button>User Menu</button>} header={<div className="menu-header">User Options</div>} footer={<div className="menu-footer">Settings</div>} position="bottom-right" animationDuration={300} theme="dark" > <div onClick={() => console.log('Profile')}>Profile</div> <div onClick={() => console.log('Settings')}>Settings</div> <div onClick={() => console.log('Logout')}>Logout</div> </PopupMenu> ); }

function App() { return ( <PopupMenu trigger={<button>Custom Position</button>} position="top-center" viewportPadding={20} enableScroll={true} noDefaultStyle={false} theme="light" onOpenChange={(isOpen) => console.log('Menu is:', isOpen)} onClose={() => console.log('Menu closed')} > <div>Item 1</div> <div>Item 2</div> <div>Item 3</div> </PopupMenu> ); }

function App() { return ( <PopupMenu trigger={<button>Hover Over Me</button>} hoverTrigger={true} animation="in" position="right-center" > <div>Fades in from the left</div> <div>Item 2</div> </PopupMenu> ); }

function App() { return ( <PopupMenu trigger={<button>Custom Styled Menu</button>} noDefaultStyle={true} menuClassName="fixed z-50 flex flex-col bg-blue-600 text-white rounded-md shadow-lg min-w-[120px] opacity-0 transition-all duration-200" position="bottom-right" > <div className="px-3 py-2 hover:bg-blue-700 cursor-pointer">Option 1</div> <div className="px-3 py-2 hover:bg-blue-700 cursor-pointer">Option 2</div> <div className="px-3 py-2 hover:bg-blue-700 cursor-pointer">Option 3</div> </PopupMenu> ); }

const menuProps: PopupMenuProps = { trigger: <button>Menu</button>, children: <div>Menu Item</div>, position: 'bottom-right' as PositionType, theme: 'dark', enableScroll: true, onOpenChange: (isOpen) => console.log(isOpen), };

// Usage in component function MyComponent() { return ( <PopupMenu {...menuProps} /> ); }