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/buttons

v0.1.1

Published

Headless-ish button primitives wired to the Edux design tokens. The package ships four components:

Readme

@edux-design/buttons

Headless-ish button primitives wired to the Edux design tokens. The package ships four components:

  • Button – primary action button with size + variant helpers.
  • IconButton – circular/square icon surface that reuses the same states.
  • MenuButton – trigger wrapper that pairs nicely with popovers/menus.
  • ButtonGroup – segmented control with a sliding active state meant for contextual filters.

Everything is built with Tailwind utilities via the shared cx helper so styling stays consistent with the rest of the system.


Installation

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

Peer deps: react@^19.1.0, react-dom@^19.1.0.


Usage

import { Button, IconButton, MenuButton } from "@edux-design/buttons";
import { Close, Chevron } from "@edux-design/icons";

export function Actions() {
  return (
    <div className="flex gap-4">
      <Button size="small">Save</Button>
      <Button isSecondary isStretched>
        Cancel
      </Button>
      <Button isDanger disabled>
        Delete
      </Button>
      <IconButton icon={<Close />} aria-label="Close dialog" />
      <MenuButton caret={<Chevron />} onClick={() => null}>
        Options
      </MenuButton>
    </div>
  );
}

ButtonGroup

import React from "react";
import { ButtonGroup } from "@edux-design/buttons";
import { Warning } from "@edux-design/icons";

export function SegmentedFilter() {
  const [value, setValue] = React.useState("inbox");

  return (
    <ButtonGroup
      value={value}
      onChange={(nextValue) => setValue(nextValue)}
      options={[
        { value: "inbox", label: "Label (11)" },
        { value: "drafts", label: "Label (11)" },
        {
          value: "alerts",
          label: "Label",
          endAdornment: <Warning className="h-4 w-4 text-warning-600" />,
        },
      ]}
    />
  );
}

Provide options as strings or objects ({ value, label, startAdornment, endAdornment, disabled }). The active pill animates over the newly selected option and the group behaves like an accessible radiogroup (arrow keys + home/end). Use isStretched when the control should fill the parent width.

Key props

| Component | Important props | | ------------- | --------------- | | Button | size="small"|"medium"|"large", isSecondary, isDanger, isBare, isStretched, disabled | | IconButton | icon, size, isBare, isDanger, disabled | | MenuButton | Accepts all Button props plus caret slot and ARIA attributes for menu triggers | | ButtonGroup | options, value / defaultValue, onChange, size, isStretched, per-option startAdornment / endAdornment, disabled |

Buttons warn in development if you pass conflicting variant booleans so you know which style wins.


Development

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

Stories live under src/demo (e.g. Button.stories.jsx, ButtonGroup.stories.jsx) for quick visual verification.


Notes

  • Variants map directly to the design tokens defined in @edux-design/tokens.
  • Hover/focus styles are already applied; avoid overriding unless you have a matching token.
  • If you need new variants (ghost, link, destructive-secondary, etc.), add them in Button.jsx and update the stories + README accordingly.