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

bds-ui

v1.0.0

Published

A beautiful React component library built with Tailwind CSS

Readme

My UI Components

A beautiful React component library built with Tailwind CSS, providing a comprehensive set of reusable UI components for modern web applications.

Features

  • 🎨 Beautiful Design - Modern, clean components with thoughtful styling
  • 🔧 TypeScript Support - Full TypeScript support with type definitions
  • 🎯 Tailwind CSS - Built with Tailwind CSS for easy customization
  • 📱 Responsive - Mobile-first responsive design
  • Accessible - Built with accessibility in mind
  • 🌳 Tree Shakable - Import only what you need
  • 📦 Lightweight - Minimal bundle size impact

Installation

npm install my-ui-components

Make sure you have the required peer dependencies:

npm install react react-dom

Setup

Tailwind CSS Configuration

Add the library's source path to your tailwind.config.js to ensure proper styling:

module.exports = {
  content: [
    "./src/**/*.{js,ts,jsx,tsx}",
    "./node_modules/my-ui-components/dist/**/*.{js,ts,jsx,tsx}"
  ],
  // ... rest of your config
}

Components

Button

import { Button } from 'my-ui-components';

<Button variant="solid" color="primary" size="md">
  Click me
</Button>

Props:

  • variant: 'solid' | 'outline' | 'ghost' | 'link'
  • color: 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'neutral'
  • size: 'sm' | 'md' | 'lg' | 'xl'
  • isLoading: boolean
  • leftIcon, rightIcon: React.ReactNode

Input

import { Input } from 'my-ui-components';
import { Search } from 'lucide-react';

<Input 
  label="Search"
  placeholder="Enter search term..."
  leftIcon={<Search size={16} />}
/>

Props:

  • size: 'sm' | 'md' | 'lg' | 'xl'
  • error: boolean
  • helperText: string
  • label: string
  • leftIcon, rightIcon: React.ReactNode

Card

import { Card } from 'my-ui-components';

<Card padding="md" shadow="md">
  <h3>Card Title</h3>
  <p>Card content goes here...</p>
</Card>

Props:

  • padding: 'none' | 'sm' | 'md' | 'lg' | 'xl'
  • shadow: 'none' | 'sm' | 'md' | 'lg' | 'xl'
  • border: boolean

Badge

import { Badge } from 'my-ui-components';

<Badge variant="solid" color="success">
  New
</Badge>

Props:

  • variant: 'solid' | 'outline' | 'subtle'
  • color: 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'neutral'
  • size: 'sm' | 'md' | 'lg' | 'xl'

Modal

import { Modal } from 'my-ui-components';

<Modal 
  isOpen={isOpen} 
  onClose={() => setIsOpen(false)}
  title="Modal Title"
  size="md"
>
  Modal content here...
</Modal>

Props:

  • isOpen: boolean
  • onClose: () => void
  • title: string
  • size: 'sm' | 'md' | 'lg' | 'xl' | 'full'
  • closeOnOverlay: boolean

Spinner

import { Spinner } from 'my-ui-components';

<Spinner size="md" color="primary" />

Props:

  • size: 'sm' | 'md' | 'lg' | 'xl'
  • color: 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'neutral'

Typography

import { Typography } from 'my-ui-components';

<Typography variant="h1" color="primary" weight="bold">
  Heading Text
</Typography>

Props:

  • as: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'div'
  • variant: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'body1' | 'body2' | 'caption' | 'overline'
  • color: 'primary' | 'secondary' | 'muted' | 'success' | 'warning' | 'error'
  • weight: 'light' | 'normal' | 'medium' | 'semibold' | 'bold'
  • align: 'left' | 'center' | 'right'

Development Commands

# Install dependencies
npm install

# Start development server
npm run dev

# Build the library
npm run build

# Link for local development
npm run link:local

# Unlink local package
npm run unlink:local

Publishing to NPM

  1. Build the library:

    npm run build
  2. Login to NPM:

    npm login
  3. Publish:

    npm publish
  4. Update version and publish:

    npm version patch  # or minor, major
    npm publish

Local Development & Testing

To test your library in another project locally:

  1. In your library project:

    npm run build
    npm link
  2. In your test project:

    npm link my-ui-components
  3. To unlink:

    npm unlink my-ui-components  # in test project
    npm unlink                   # in library project

License

MIT