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

gamut-react-ui

v3.0.2

Published

A lightweight, accessible React component library built with TypeScript, Vite, and CSS.

Readme

Gamut React UI

A modern, color-driven React component library featuring highly customizable badges, banners components.

npm version License: MIT React Vite



📖 Table of Contents


✨ Features

  • 🎨 Rich Color Palettes: Vibrant, accessible color variants for state feedback and UI highlights.
  • 📦 Modular & Tree-Shakable: Import only the components you need into your bundle.
  • ⚡ Vite: Fast development build times.
  • 📚 Storybook Included: Interactive component sandbox with real-time prop controls.

Demo/Storybook

Storybook link

Screenshoot/video & installation


📦 Installation

Install the package via npm or yarn:

npm install gamut-react-ui
# or
yarn add gamut-react-ui

🚀 Quick Start

Import and use components directly in your React application:

import React from 'react';
import { Badge, Banner, Card, Tooltip, Toast } from 'gamut-react-ui';
import "gamut-react-ui/style.css";

function App() {
  return (
    <div style={{ padding: '2rem', display: 'flex', flexDirection: 'column', gap: '1.5rem' }}>
      {/* Badge Example */}
      <Badge size="md" variant="success">
        Success Badge
      </Badge>

      {/* Banner Example */}
      <Banner type="success" variant="multiline" title="Notification">
        Congratulations! Your settings have been saved.
      </Banner>

      {/* Card Component */}
      <Card title="Easy Deployment">
        Ac tincidunt sapien vehicula erat auctor pellentesque rhoncus.
      </Card>

      {/* Toast Component */}
      <Toast title="Success" type="success">
        Your work has been saved.
      </Toast>

      {/* Tooltip Component */}
      <Tooltip 
        theme="dark" 
        title="Archive notes"
        onClose={() => handleClose()}
      >
        Lorem ipsum dolor sit amet consectetur adipisicing elit.
      </Tooltip>

    </div>
  );
}

export default App;

🧩 Components Overview

1. Badge

Display status indicators, tags, or counts.

Props

| Prop | Type | Default | Description | | --- | --- | --- | --- | | variant | 'neutral' \| 'info' \| 'success' \| 'warning' \|'danger' \| 'purple'| 'neutral' | Sets the variant. | | size | 'sm' \| 'md' \|'lg'| 'md' | Badge sizes. | |type | 'pill' \| 'square' | 'square' | The radius corner of a badge. | | dot | boolean| false | A dot inside the badge. | | children | ReactNode | required | The description text inside the badge. | | className | string | '' | Optional custom CSS class. |

 <Badge variant="purple"> Purple</Badge>
 <Badge size="md"> Medium</Badge>

 {/* Badge with dot*/}
 <Badge variant="success" dot>Online</Badge>

 {/* pill badge*/}
 <Badge variant="info" type="pill">I'm the pill badge</Badge>

 {/* Long Label */}
 <div style={{ width: 180 }}>
      <Badge>
        This is a very long badge label
      </Badge>
  </div>

2. Banner

Inline banners for singleline or detailed multiline message blocks.

Props

| Prop | Type | Default | Description | | --- | --- | --- | --- | | type | 'success' \| 'warning' \| 'error' \| 'neutral' | 'success' | Visual state color theme and status icon. | | variant | 'singleline' \| 'multiline' | 'singleline' | Singleline banner or multiline layout with title. | | title | string | undefined | Header title (primarily used in multiline mode). | | children | ReactNode | undefined | Message content or description body. |

// Singleline banner
<Banner title="Congratulations!" type="success">
</Banner>

// Multiline banner
<Banner title="Attention" type="warning" variant="multiline">
  lorem ipsum dolor sit amet consectetur adipisicing elit.
</Banner>

3. Tooltip

Contextual popup cards with a directional caret indicator, close buttons, and support for solid/light color themes.

Props

| Prop | Type | Default | Description | | --- | --- | --- | --- | | theme | 'dark' \| 'white' \| 'blue' \| 'blue-light' \| 'purple' \| 'pink-light' \| 'green' \| 'green-light' | 'dark' | Color palette scheme. | | title | string | undefined | Bold heading text. | | icon | ReactNode | undefined | Leading icon element. | | onClose | function | undefined | Triggered when clicking the close button. | | children | ReactNode | undefined | Tooltip body text. |



<Tooltip 
  theme="dark" 
  title="Archive notes"
  onClose={() => handleClose()}
>
  Lorem ipsum dolor sit amet consectetur adipisicing elit.
</Tooltip>

4. Toast

Floating notification popups designed for state feedback (success, warning, information, error).

Props

| Prop | Type | Default | Description | | --- | --- | --- | --- | | type | 'success' \| 'warning' \| 'information' \| 'error' | State variant. | | title | string | undefined | Title text. | | children | ReactNode | undefined | Description or action message. |

<Toast title="Success" type="success">
  Your work has been saved.
</Toast>

5. Card

A feature display card with a floating top badge icon, clean typography, and interactive hover elevation.

Props

| Prop | Type | Default | Description | | --- | --- | --- | --- | | icon | ReactNode | <DefaultIcon /> | Overlapping icon badge displayed at top center. | | title | string | undefined | Main heading title. | | isHovered | boolean | false | A boolean for managing hovered state in card . | | children | ReactNode | undefined | Main body content/description. |

<Card title="Easy Deployment">
  Ac tincidunt sapien vehicula erat auctor pellentesque rhoncus.
</Card>

<Card title="Easy Deployment" isHovered={true}>
  I am the hovered Card!.
</Card>

📄 License

This project is licensed under the MIT License.