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

@jerryshim-ui/button

v0.1.0

Published

A small, consistent button component built on Tailwind token utilities and Radix Colors. It exposes common controls like `variant`, `color`, `size`, `radius`, `loading`, and `asChild`.

Readme

@jerryshim-ui/button

A small, consistent button component built on Tailwind token utilities and Radix Colors. It exposes common controls like variant, color, size, radius, loading, and asChild.


Install

pnpm add @jerryshim-ui/button
# peer: react 19+

Quick start

import { Button } from '@jerryshim-ui/button';

export default function Example() {
  return (
    <div className="flex gap-2">
      <Button>Primary</Button>
      <Button variant="outline" color="amber">
        Outline
      </Button>
      <Button loading>Saving…</Button>
    </div>
  );
}

Theme integration (brief)

This component uses token utility classes (bg-theme-…, text-theme-…). In your app, generate and import theme CSS via @jerryshim/theme-builder.

  1. Install the theme builder and add scripts
pnpm add -D @jerryshim/theme-builder

package.json

{
  "scripts": {
    "theme:dep": "jerry-theme-build dep-sync",
    "theme:sync": "jerry-theme-build sync",
  },
}
  1. Add a minimal jerry-theme.config.js at project root
// jerry-theme.config.js
export default {
  outputDir: 'src/styles/jerry-theme',
  palettes: [
    {
      colorName: 'blue',
      base: { option: 'all', p3: true, theme: true },
      alpha: { option: 'all', p3: true, theme: true },
    },
    {
      colorName: 'slate',
      base: { option: 'all', p3: true, theme: true },
      alpha: { option: 'all', p3: true, theme: true },
    },
    { colorName: 'mono', alpha: { option: 'all', p3: true, 'reverse-theme': true } },
  ],
};
  1. Merge dependency theme configs (optional)
pnpm run theme:dep
  1. Generate theme files and import in your app
pnpm run theme:sync
// e.g., in src/main.tsx or your global style entry
import '@jerryshim-ui/button/preset.css';
import './styles/jerry-theme/all-colors-only.css';

Build

Built with @jerryshim/builder. Ships dual ESM/CJS exports and TypeScript declarations.


Props (brief)

  • variant: solid | soft | outline | ghost | link (default: solid)
  • color: slate | blue | green | red | amber | mono (default: blue)
  • size: sm | md | lg | icon (default: md)
  • radius: sm | md | lg | full (default: md)
  • loading: boolean (default: false)
  • preset: primary | neutral | success | danger | warning
    • Fills in variant/color only when they are not provided.
  • asChild: boolean
    • Renders with Slot to style a different element (e.g., anchor) as a button.
  • disabled: boolean
    • With native button, disabled attribute is applied; with asChild or loading, aria-disabled is used.
  • Others: All standard button attributes (type, onClick, children, …).

Note: Exposes data-variant, data-color, data-size, data-loading, and data-preset attributes for styling and testing.


License

MIT