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

paper-ui-component

v0.1.3

Published

A minimal UI component library built with Vite, React, TypeScript, and Tailwind CSS

Readme

UI Library

A minimal UI component library built with Vite, React, TypeScript, and Tailwind CSS.

Features

  • Built with Vite for fast development and optimal build output
  • Components styled with Tailwind CSS (pre-compiled and bundled)
  • Full TypeScript support with complete declaration files
  • Dual ESM and CommonJS output (works with Next.js, Vite, and all module systems)
  • Properly configured exports for both import and require

Installation

npm install paper-ui-component
# or
pnpm add paper-ui-component
# or
yarn add paper-ui-component

Usage

Step 1: Import the CSS in your application entry point:

For Next.js (in app/layout.tsx or pages/_app.tsx):

import 'paper-ui-component/dist/paper-ui-component.css'

For Vite/React (in main.tsx or index.tsx):

import 'paper-ui-component/dist/paper-ui-component.css'

Step 2: Use the components in your app:

import { Button, Card, CardHeader, CardBody, CardFooter } from 'paper-ui-component'

export default function App() {
  return (
    <div className="p-8">
      <Card>
        <CardHeader>
          <h2>Welcome</h2>
        </CardHeader>
        <CardBody>
          <p>This is a card component</p>
        </CardBody>
        <CardFooter>
          <Button>Click me</Button>
        </CardFooter>
      </Card>
    </div>
  )
}

Troubleshooting

Error: "Can't resolve 'paper-ui-component/dist/ui-lib.css'"

  • Make sure you've imported the CSS file in your app layout/entry point
  • The CSS import must come before using any components

Error: "dynamic usage of require is not supported"

  • This usually means the package wasn't installed correctly
  • Try deleting node_modules and package-lock.json, then reinstall
  • Make sure the package.json has both the CSS and component imports configured

Components

Button

A flexible button component with variants and sizes.

Props:

  • variant: 'primary' | 'secondary' (default: 'primary')
  • size: 'sm' | 'md' | 'lg' (default: 'md')

Card

Composable card component with optional header, body, and footer.

Subcomponents:

  • Card - Main card container
  • CardHeader - Header section (with top border)
  • CardBody - Main content area
  • CardFooter - Footer section (with bottom border)

Development

# Install dependencies
pnpm install

# Start dev server
pnpm dev

# Build for production
pnpm build

# Preview production build
pnpm preview

Publishing

Update the version in package.json and publish to npm:

npm publish --access public

To publish as a scoped package, update the name in package.json to your desired scope (e.g., @yourorg/ui-lib).