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

zero-ui-kit

v1.0.1

Published

A modern React UI component library with Button, Input, and other essential components

Readme

Zero UI

A modern React UI component library with essential components for building beautiful user interfaces.

Installation

npm install zero-ui-kit

Usage

import { Button, Input } from 'zero-ui-kit';

function App() {
  return (
    <div>
      <Button variant="primary" size="medium">
        Click me!
      </Button>
      
      <Input 
        type="text" 
        label="Username" 
        placeholder="Enter your username" 
      />
    </div>
  );
}

Components

Button

A versatile button component with multiple variants and sizes.

Props

  • variant: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'outline' (default: 'primary')
  • size: 'small' | 'medium' | 'large' (default: 'medium')
  • disabled: boolean (default: false)
  • onClick: function
  • type: 'button' | 'submit' | 'reset' (default: 'button')

Examples

// Primary button
<Button variant="primary">Primary</Button>

// Secondary button
<Button variant="secondary" size="large">Secondary</Button>

// Outline button
<Button variant="outline" size="small">Outline</Button>

// Disabled button
<Button disabled>Disabled</Button>

Input

A flexible input component supporting various input types with labels, validation, and helper text.

Props

  • type: 'text' | 'email' | 'password' | 'number' | 'tel' | 'url' | 'search' | 'radio' | 'checkbox' | 'file' | 'range' (default: 'text')
  • label: string - Input label
  • placeholder: string - Placeholder text
  • value: string | number - Input value
  • onChange: function - Change handler
  • error: string - Error message
  • disabled: boolean (default: false)
  • required: boolean (default: false)
  • size: 'small' | 'medium' | 'large' (default: 'medium')
  • variant: 'default' | 'filled' | 'outlined' (default: 'default')
  • helperText: string - Helper text
  • prefix: ReactNode - Prefix content
  • suffix: ReactNode - Suffix content

Examples

// Text input with label
<Input 
  type="text" 
  label="Full Name" 
  placeholder="Enter your full name" 
/>

// Email input with validation
<Input 
  type="email" 
  label="Email" 
  placeholder="Enter your email"
  error="Please enter a valid email"
/>

// Password input
<Input 
  type="password" 
  label="Password" 
  placeholder="Enter your password"
  required
/>

// Number input
<Input 
  type="number" 
  label="Age" 
  placeholder="Enter your age"
  min="18"
  max="100"
/>

// Input with prefix and suffix
<Input 
  type="text" 
  label="Website" 
  placeholder="example"
  prefix="https://"
  suffix=".com"
/>

// Radio input
<Input 
  type="radio" 
  label="Option 1"
  name="radioGroup"
  value="option1"
/>

// Checkbox input
<Input 
  type="checkbox" 
  label="I agree to the terms"
/>

// File input
<Input 
  type="file" 
  label="Upload file"
  accept=".jpg,.png,.pdf"
/>

// Range input
<Input 
  type="range" 
  label="Volume"
  min="0"
  max="100"
  step="1"
/>

Navbar

A responsive navigation component (existing component).

Styling

The components come with default styles, but you can customize them by overriding the CSS classes or by using the className prop.

CSS Classes

Button

  • .zero-button - Base button class
  • .zero-button--{variant} - Variant classes
  • .zero-button--{size} - Size classes
  • .zero-button--disabled - Disabled state

Input

  • .zero-input - Base input class
  • .zero-input--{variant} - Variant classes
  • .zero-input--{size} - Size classes
  • .zero-input--error - Error state
  • .zero-input--disabled - Disabled state

License

MIT

Author

muhammedirfan