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

@thepom/react-components

v0.1.9

Published

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

Readme

POM React Components

A collection of reusable React components to provide consistent UI/UX across POM applications and for the convenience of developers

Install

npm i @thepom/react-components 

or

yarn add @thepom/react-components

Usage

Importing components and styles

import "pom-react-components/dist/tailwind.css"
import { HelloWorld } from 'pom-react-components';

in your main file:

  • index.js for CRA
  • _app.js for Next.js
  • gatsby.config.js for Gatsby

Fonts

For fonts to work correctly, add this into your tailwind.config.js

module.exports = {
  theme: {
    fontFamily: {
      'regular': ['BwGradual', '-apple-system', 'BlinkMacSystemFont'],
      'title': ['MonumentExtended', '-apple-system', 'BlinkMacSystemFont'],
    }
}

You can also access all the font files in @thepom/react-components/dist/fonts

NOTE: react, react-dom, and tailwindcss are peerDependencies so this package assumes that your project already has these installed

Developer Notes

TODO

  • [x] add tailwindcss
  • [x] add react-styleguidist
  • [ ] add twin.macro
  • [ ] move over components from discover-pom

Contribute

You may organization access to be granted read/write permissions when publishing to the scope @thepom

After making changes, make sure to update the package version and shrinkwrap before publishing onto npm.

Configuring webpack for TailwindCSS to show correctly with React StyleGuidist

IMPORTANT: Using the correct webpack config is required for react-styleguidist to work with tailwindcss. The styleguide.config.js must specify to use the webpack config file that craco uses, otherwise when you run styleguide, react-styleguidist will use the webpack.config.js located in node_modules/react-scripts which overrides Tailwind styles. FYI this is also why craco must be used instead of react-scripts for when serving create-react-app when getting Tailwind to display correctly

This is already done in the repo, however I wanted to document this in case anyone is curious or for future project setups.

Instructions

Edit styleguide.config.js in the root directory

/* styleguide.config.js */
const { createWebpackDevConfig } = require("@craco/craco");

const cracoConfig = require("./craco.config.js");
const webpackConfig = createWebpackDevConfig(cracoConfig);

module.exports = {
  webpackConfig
}

To apply tailwind css globally:

/* styleguide.config.js */
const path = require('path')

const { createWebpackDevConfig } = require("@craco/craco");

const cracoConfig = require("./craco.config.js");
const webpackConfig = createWebpackDevConfig(cracoConfig);

module.exports = {
  webpackConfig,
  require: [
    path.join(__dirname, './src/styles/tailwind.css')
  ]
}

Scripts

In the root pom-react-components directory, you can run:

yarn && yarn rollup or npm update && npm run rollup

Compiles the code into basic javascript for production in the dist folder. It will generate 2 bundled files

  • index.cs.js
  • index.esm.js

yarn styleguide

Serves react-styleguidist on http://localhost:6060

Useful commands

npm version major npm version minor npm version patch

To update the package versions

npm publish

Publishes the package onto https://npmjs.com

npm shrinkwrap

Saves a package-lock.json-esque file for anyone who downloads the npm package

Further Reading

Build a Private React Component Library with CRA, Rollup, Material UI

Tailwind CSS with create-react-app

Creating Your Own React Component Library