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

@papillonbits/components

v1.13.1

Published

Papillon Bits Components

Downloads

612

Readme

@papillonbits/components

A comprehensive collection of accessible React components for building modern web applications.

npm version

Overview

This package provides a complete suite of React components following atomic design principles. All components are built with accessibility, reusability, and customization in mind.

Installation

npm install @papillonbits/components

Components

Layout Components

  • Alert - Display notification and alert messages with various severity levels
  • Blankslate - Show empty states with helpful messaging
  • Box - Flexible layout container with customizable spacing and styling
  • Layout - Page layout components for consistent structure

Form Components

  • Checkbox - Accessible checkbox input with label support
  • Input - Text input fields with validation states
  • Radio - Radio button input with grouping support
  • Select - Native select dropdown component
  • SelectMenu - Advanced select menu with search and filtering

Navigation Components

  • Breadcrumb - Navigation breadcrumbs for hierarchical navigation
  • Menu - Vertical navigation menu
  • TabNav - Tab-based navigation
  • UnderlineNav - Underlined navigation bar

Interactive Components

  • Button - Interactive button with multiple variants and states
  • Dropdown - Dropdown menus and selectors
  • Pagination - Pagination controls with PreviousNext component

Display Components

  • Label - Labels and tags for categorization
  • Icon - Icon components for visual communication
  • SVG - SVG utilities and components
  • BranchName - Git branch name display component

Grid & Table Components

  • DisplayTable - Table component for displaying tabular data
  • FlexGrid - Flexible grid layout system

Feedback Components

  • Loader - Loading indicators and spinners
  • Progress - Progress bars and indicators
  • Toast - Toast notification system
  • Popover - Popover and tooltip containers

Utility Components

  • ErrorBoundary - React error boundary for graceful error handling
  • Subhead - Subheading components for content hierarchy

Usage

import { Button, Alert, Input } from '@papillonbits/components';

function MyComponent() {
  return (
    <div>
      <Alert type="success">Operation completed successfully!</Alert>
      <Input 
        label="Email" 
        type="email" 
        placeholder="Enter your email"
      />
      <Button variant="primary">Submit</Button>
    </div>
  );
}

Dependencies

This package depends on:

  • @papillonbits/css - Styling and CSS primitives
  • @papillonbits/library - Utility functions and helpers
  • react - React library
  • prop-types - Runtime type checking

Development

Building

# Build the package
npm run build

# Build for different environments
npm run build-test
npm run build-acceptance
npm run build-release

Scripts

  • clean-up - Remove build artifacts and dependencies
  • install-packages - Install dependencies
  • install-papillonbits-latest - Update to latest papillonbits packages
  • build - Transpile and build the package

Features

  • Accessibility First - All components follow WCAG guidelines
  • Customizable - Easy to theme and customize via CSS and props
  • TypeScript Ready - PropTypes included for runtime validation
  • Tree Shakeable - Import only what you need
  • Well Tested - Comprehensive test coverage with Jest and Testing Library

Component Design Principles

  • Separation of Concerns - Logic separated from presentation
  • Composition - Components designed to work together
  • Atomic Design - Built from atoms to organisms to templates
  • Accessibility - ARIA attributes and keyboard navigation
  • Performance - Optimized for minimal re-renders

Documentation

For detailed component API documentation and live examples, visit the Storybook documentation.

Links

Related Packages

License

See root LICENSE file for details.