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

@edux-design/menus

v1.0.0

Published

Accessible menu primitives built on top of the popover system. The package exports:

Downloads

264

Readme

@edux-design/menus

Accessible menu primitives built on top of the popover system. The package exports:

  • Menu – wraps the trigger button + popover content.
  • MenuList – focus-managed listbox container.
  • MenuItem – keyboard-friendly row with hover/focus styling.

Menus integrate seamlessly with @edux-design/buttons (for triggers) and @edux-design/popovers under the hood.


Installation

pnpm add @edux-design/menus @edux-design/buttons @edux-design/popovers @edux-design/utils
# or
npm install @edux-design/menus @edux-design/buttons @edux-design/popovers @edux-design/utils

Peer deps also include react@^19.1.0, react-dom@^19.1.0.


Usage

import { Menu, MenuList, MenuItem } from "@edux-design/menus";

export function SortMenu() {
  const [open, setOpen] = useState(false);

  return (
    <Menu
      button="Sort"
      open={open}
      onOpenChange={setOpen}
      contentProps={{ className: "min-w-[200px]" }}
    >
      <MenuList>
        <MenuItem onClick={() => console.log("Newest")}>Newest</MenuItem>
        <MenuItem onClick={() => console.log("Oldest")}>Oldest</MenuItem>
        <MenuItem onClick={() => console.log("A → Z")}>A → Z</MenuItem>
      </MenuList>
    </Menu>
  );
}

Features

  • Arrow key navigation loops through MenuItems; Enter/Space activate the focused item.
  • Escape closes the popover via Radix’ PopoverClose.
  • Menu accepts either a string trigger (rendered as a Button) or a custom React node.
  • Pass trapFocus, disableOutsidePointerEvents, align, side, etc., to control the underlying popover.

Development

pnpm --filter @edux-design/menus lint
pnpm --filter @edux-design/menus check-types
pnpm --filter @edux-design/menus build

Storybook examples live in src/demos/Menu.stories.jsx.


Notes

  • Menu items render as <li role="button">; if you need semantic <button> or <a> elements, pass asChild or adapt the component.
  • When integrating with routing libraries, handle selection inside the onClick of MenuItem.
  • Animations are applied via the data-[state=open|closed] classes on PopoverContent; adjust contentProps.className for custom transitions.