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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@shubham_chauhan/component-lib

v1.1.10

Published

**Behold! A delightfully crafted, accessible, and customizable React Component Library built with Vite, TypeScript, and Storybook.**

Downloads

30

Readme

🚀 React Component Library: Building Blocks for Awesome UIs!

Behold! A delightfully crafted, accessible, and customizable React Component Library built with Vite, TypeScript, and Storybook.


✨ See it in action! 👉 Play with our Storybook

🎨 What makes this library awesome?

  • Atomic Design Magic: Bringing a science concept to reality - atoms. See how tiny atom transform into molecules and then into full-blown organisms to create UI masterpieces!
  • Theme Switching Superpowers: Flip between light and dark themes with a single click. Like magic!
  • Responsive Goodness: Components that adapt faster than a chameleon.
  • Accessibility Champion: Because everyone deserves a great user experience, no exceptions!
  • Customization Paradise: Tweak and tune to make these components truly yours.
  • TypeScript + React: Typings that makes your IDE happy and your bugs sad.
  • Vite-powered: Lightning-fast builds.
  • Styled Components: Scoped CSS-in-JS.
  • Storybook Wonderland: An interactive playground where components come to life.
  • Testing Confidence: Some tests that let you sleep peacefully at night.

📚 Component Hierarchy (It's Like a UI Family Tree!)

We've embraced the Atomic Design Principle - it's not just a methodology, it's a way of life:

  • Atoms (basic building blocks of UI)

    • Funky SVG icons that bring personality to UI!

  • Molecules (groupings of atoms)

    • Expandable content sections that provide interactive visibility control with various styling options and custom icons. 1742926165228 1742926207605
  • Organisms (The Ultimate Team-up)

    • Grouped Expandable Panels that provide advanced keyboard navigation, accessibility features, and customizable expand/collapse behaviors. 1742926664979 1742926694478

🌈 Storybook - Where Components Come to Party!

Dive into our interactive Storybook wonderland:

👉 Explore the Storybook Universe

1742924435563

Plot twist: We have themes!

Don't forget to toggle between themes 1742924221907

🚀 Getting Started in 3... 2... 1...

What you'll need:

  • Node.js (v16.0.0+) - Not your grandma's JavaScript!
  • npm (v8.0.0+) or yarn (v1.22.0+) - Package management with personality!

Installation (Let's Do This!)

Clone, navigate, dominate:

git clone https://github.com/shubhamchauhan4488/component-lib.git
cd component-lib
npm install

Magic Commands at your disposal

Run Storybook

npm run storybook

Build Storybook static files

npm run build-storybook

Build the component library

npm run build

Run tests

npm run test

Run tests in watch mode

npm run test:watch

Run tests with coverage

npm run test:coverage

Preview built components

npm run preview

📦 Add Some Spice to Your Project!

Install our delightful package:

npm install @shubham_chauhan/component-lib

Import and use components (it's simple):

import { Accordion, ExpandablePanel, Icon } from '@shubham_chauhan/component-lib';

const MyComponent = () => (
  <Accordion
    allowMultipleOpen={true}
    panelVariant="PRIMARY"
    items={[{
      id: 'example-panel',
      title: 'Example Panel',
      content: `<div>`Example content goes here.`</div>`,
    }]}
  />
);

Cherry-pick components if you're feeling selective:

import { Accordion } from '@shubham_chauhan/component-lib/components/accordion';

const MyComponent = () => (
  <Accordion
    allowMultipleOpen={true}
    panelVariant="PRIMARY"
    items={[{
      id: 'example-panel',
      title: 'Example Panel',
      content: `<div>`Example content goes here.`</div>`,
    }]}
  />
);

📖 For more inspiration

Visit our Storybook playground 👉 Storybook Wonderland for interactive examples that will make you say "Wow, I need this in my project!"