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

coolbuttons

v1.0.4

Published

Production-ready button components. Works with React, Vue, Svelte, Vanilla JS, and any framework.

Readme

Cool Buttons 🎨

400+ production-ready button components for React, Vue, Svelte, and Vanilla JavaScript.

Universal package that works with any framework or vanilla JS.

📦 Installation

npm install coolbuttons

🚀 Quick Start

React

import { ClassicButton, ModernButton, GlassButton } from 'coolbuttons/react';

export default function App() {
  return (
    <>
      <ClassicButton>Classic</ClassicButton>
      <ModernButton>Modern</ModernButton>
      <GlassButton>Glass</GlassButton>
    </>
  );
}

Vanilla JavaScript

import { createButton, createGlassButton } from 'coolbuttons/vanilla';

const button = createButton({ text: 'Click me' });
document.body.appendChild(button);

Vue / Svelte / Other Frameworks

import * from 'coolbuttons/vanilla';
// Use vanilla JS components that work in any framework

📚 Features

Button Styles

  • Claymorphic, Neumorphic, Glassmorphic
  • Cyberpunk, Minimal, Animated
  • Gradient, Brutalist, and more

🎯 Framework Agnostic

  • React components
  • Vanilla JavaScript utilities
  • Works with Vue, Svelte, Angular, Astro

🎨 Fully Customizable

  • Tailwind CSS based
  • Easy to modify and extend
  • Copy-paste friendly code

Production Ready

  • Zero external dependencies (for vanilla version)
  • Optimized performance
  • Accessible and semantic HTML

📱 Responsive Design

  • Mobile-first approach
  • Works on all modern browsers
  • Dark mode support

📖 Documentation

Visit coolbuttons.dev for:

  • Interactive button showcase
  • Copy-to-clipboard code snippets
  • Implementation guides
  • Live examples

🎯 Usage Examples

React with TypeScript

import {
  GlassButton,
  NeumorphicButton,
  CyberpunkButton,
} from 'coolbuttons/react';

interface ButtonProps {
  onClick?: () => void;
  children: React.ReactNode;
}

export function MyComponent() {
  return (
    <div className="flex gap-4">
      <GlassButton onClick={() => console.log('clicked')}>
        Glass Style
      </GlassButton>
      <NeumorphicButton>Neumorphic</NeumorphicButton>
      <CyberpunkButton>Cyberpunk</CyberpunkButton>
    </div>
  );
}

Vanilla JavaScript

import { createGlassButton, createNeumorph } from 'coolbuttons/vanilla';

// Create a glass button
const glassBtn = createGlassButton({
  text: 'Click me',
  onClick: () => alert('Clicked!'),
});

// Create neumorphic button
const neuBtn = createNeumorph({
  text: 'Neumorphic',
  color: '#ff7a00',
});

document.body.append(glassBtn, neuBtn);

🏗️ Sub-packages

This package includes:

@coolbuttons/react

React components and hooks for button implementations.

npm install @coolbuttons/react

@coolbuttons/vanilla

Vanilla JavaScript utilities and helper functions.

npm install @coolbuttons/vanilla

🎨 Customization

All buttons are built with Tailwind CSS, making them easy to customize:

import { GlassButton } from 'coolbuttons/react';

export function CustomButton() {
  return (
    <GlassButton className="!bg-purple-500 !text-white">
      Custom Colors
    </GlassButton>
  );
}

🌙 Dark Mode

Built-in dark mode support:

<div className="dark">
  <GlassButton>Works in dark mode</GlassButton>
</div>

📦 Bundle Size

  • React package: ~15KB (gzipped)
  • Vanilla package: ~8KB (gzipped)
  • Main package: ~2KB (re-export wrapper)

🤝 Contributing

We welcome contributions! Please see our GitHub repository for more information.

📄 License

MIT © Cool Buttons

🔗 Links


Made with ❤️ by the Cool Buttons team