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

v1.0.3

Published

Production-ready button components for React

Readme

@coolbuttons/react

A comprehensive collection of beautifully crafted React button components with TypeScript support.

npm version npm downloads TypeScript


📦 Installation

npm install @coolbuttons/react
# or
yarn add @coolbuttons/react
# or
pnpm add @coolbuttons/react

Requirements

  • React 16.8+ (for hooks support)
  • React-DOM 16.8+

🚀 Quick Start

Basic Usage

import { Claymorphic } from '@coolbuttons/react';

export default function App() {
  return (
    <Claymorphic onClick={() => alert('Clicked!')}>
      Click Me
    </Claymorphic>
  );
}

Multiple Buttons

import { 
  Claymorphic, 
  GlassCard, 
  NeonBorder,
  ModernMinimal 
} from '@coolbuttons/react';

export default function ButtonGrid() {
  return (
    <div className="flex gap-4 p-8">
      <Claymorphic>Claymorphic</Claymorphic>
      <GlassCard>Glass Card</GlassCard>
      <NeonBorder>Neon Border</NeonBorder>
      <ModernMinimal>Modern Minimal</ModernMinimal>
    </div>
  );
}

📚 All Available Components

Import Convention

import { ButtonName } from '@coolbuttons/react';

Complete Button List (200+)

Glassmorphic: GlassCard, GlassDouble, GlassFrostedInner, GlassFrostyPill, GlassFusion, GlassGlow, GlassInset, GlassReflective, GlassRefraction, GlassStroke, DeepBlurGlass, EtherealBlur

Neumorphic: NeumorphicSoft, NeumorphicConcave, NeumorphicConcavePill, NeumorphicDark, NeumorphicEmbossed, HighElevatedNeumorphic

Cyberpunk: Cyberpunk, CyberBevel, CyberGlow, CyberGradient, CyberSlice, GlitchEffect, OutlineComet

Modern & Minimal: ModernMinimal, ModernPrimary, MinimalArrow, MinimalBadge, MinimalPulse, InvertedMinimal, InvertedRound

Liquid & Morph: LiquidFill, LiquidGradient, LiquidPrism, LiquidWarp, MorphingShape, GradientMorph

Animated & Interactive: MagneticBorder, MagneticCircle, MagneticSoft, MagnifyHover, MagnifyText, FloatingPulse, FloatingLabel, ExpandingAura, ExpandingPill, BouncyIcon, IconBounce

Retro & Vintage: Classic90s, OldTerminal, ArcadeGreen, DiagonalStripes, ChipBoard

Gradient & Shadow: GradientShadow, DoubleShadow, IndependentShadow, InnerShadowDepth, ShadowGlow, FloatingShadow

Neon & Glow: NeonBorder, NeonPill, NeonPulseRing, GlowGhost, GlowOutline, InnerGlow, InnerGlowPill

Premium Effects: BentoBox, BorderBeam, BorderTrace, Brutalist, Claymorphic, ClaySoftPill, ContrastFrame, DashedReveal, DashRotate, DiamondCut, DotPattern, DualTone, ElevatedFloat, FragmentButton, GhostReveal, GlossyButton, GridOverlay, HandDrawn, Holographic, IndustrialPlate, LavaFlow, And 100+ more...


🎨 Component Props

All button components accept these props:

interface ButtonProps {
  children?: React.ReactNode;      // Button text/content
  onClick?: () => void;             // Click handler function
  disabled?: boolean;               // Disable button state
  className?: string;               // Additional CSS classes
}

Example with Props

import { Claymorphic } from '@coolbuttons/react';

export function MyButton() {
  const handleClick = () => {
    console.log('Button clicked!');
  };

  return (
    <Claymorphic
      onClick={handleClick}
      disabled={false}
      className="w-full md:w-auto"
    >
      Submit
    </Claymorphic>
  );
}

🎯 Usage Examples

E-commerce

import { GlassCard, NeonBorder } from '@coolbuttons/react';

export function ProductCard({ product }) {
  return (
    <div>
      <h3>{product.name}</h3>
      <p>${product.price}</p>
      <GlassCard onClick={() => addToCart(product)}>
        Add to Cart
      </GlassCard>
      <NeonBorder onClick={() => viewDetails(product)}>
        View Details
      </NeonBorder>
    </div>
  );
}

Forms

import { ModernMinimal, ModernPrimary } from '@coolbuttons/react';

export function LoginForm() {
  return (
    <form>
      <input type="email" placeholder="Email" />
      <input type="password" placeholder="Password" />
      
      <ModernPrimary type="submit">
        Login
      </ModernPrimary>
      
      <ModernMinimal type="button" onClick={() => reset()}>
        Reset
      </ModernMinimal>
    </form>
  );
}

🎨 Styling

With Tailwind CSS

import { Claymorphic } from '@coolbuttons/react';

export function TailwindButton() {
  return (
    <Claymorphic className="
      w-full 
      md:w-auto
      px-6 
      py-3
      text-lg 
      font-bold
      rounded-lg
    ">
      Tailwind Styled
    </Claymorphic>
  );
}

With CSS Modules

import { GlassCard } from '@coolbuttons/react';
import styles from './Button.module.css';

export function ModuleButton() {
  return (
    <GlassCard className={styles.primaryButton}>
      Module Styled
    </GlassCard>
  );
}

♿ Accessibility

All components follow WCAG 2.1 guidelines with proper keyboard support and screen reader compatibility.


📊 Browser Support

  • ✅ Chrome/Edge (Latest)
  • ✅ Firefox (Latest)
  • ✅ Safari 12+
  • ✅ iOS Safari 12+
  • ✅ Android Chrome

🚀 Performance

  • Tree-shakeable: Import only what you need
  • Small size: ~50KB gzipped
  • No external CSS: Styles are encapsulated
  • Optimized rendering: Uses React best practices
  • Production ready: Battle-tested

📄 License

MIT © 2026 Cool Buttons


🙋 Support