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

@gospore/button

v1.0.121

Published

Buttons trigger primary actions across the product. The package ships the `Button` component, an `IconButton` variant for square icon-only actions, and a lightweight `ButtonGroup` wrapper that keeps button spacing consistent.

Readme

@gospore/button

Buttons trigger primary actions across the product. The package ships the Button component, an IconButton variant for square icon-only actions, and a lightweight ButtonGroup wrapper that keeps button spacing consistent.

Slots

  • default: Button label.
  • iconBefore: Optional leading icon/content.
  • iconAfter: Optional trailing icon/content (often used for chevrons).

IconButton

Use IconButton for actions represented only by an icon, such as calendar navigation or toolbar commands. It accepts the same appearance, spacing, selected, pressed, and loading props as Button, but always renders as a square control.

<IconButton appearance="subtle" label="Previous month">
    <font-awesome-icon :icon="faChevronLeft" />
</IconButton>

ButtonGroup

The ButtonGroup component is a simple flex row with role="group" that applies consistent gaps between child buttons:

<ButtonGroup>
    <Button appearance="subtle">Previous</Button>
    <Button appearance="primary">Continue</Button>
</ButtonGroup>

Accessibility

  • Buttons render with type="button" so they do not accidentally submit forms.
  • Icon-only actions should use IconButton with its required label prop so the button has an accessible name even when there is no visible text.
  • Use pressed only for toggle buttons. selected is intentionally visual so menu triggers and active-looking command buttons do not announce the wrong pressed state.
  • Loading buttons set disabled to prevent duplicate submissions and display a visible spinner that inherits adequate contrast from the chosen appearance. They also expose aria-busy="true" while work is pending. Loading remains authoritative even if a wrapper explicitly passes disabled="false"; use the disabled prop for ordinary unavailable actions.
  • Foreground and background colors use a short transition for hover, active, selected, and theme changes. Contrast is guaranteed at the settled light and dark endpoints; brief interpolation during a theme switch is intentional.