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

@ui-construction-library/icons

v0.2.0

Published

Standalone React icon package for @ui-construction-library — tree-shakeable SVG icon components.

Readme

@ui-construction-library/icons

Standalone React icon package for the UI Construction Library. Works independently — no dependency on core.

When to use

Use this package whenever you need icons. It is intentionally separate from core so you can use it in projects that don't use the full component library.

Installation

pnpm add @ui-construction-library/icons

Peer dependencies

{
  "react": ">=18.0.0"
}

Minimal example

import { SearchIcon, CloseIcon, ChevronDownIcon } from '@ui-construction-library/icons';

function SearchBar() {
  return (
    <div style={{ display: 'flex', alignItems: 'center', gap: '0.5rem' }}>
      <SearchIcon size={16} />
      <input placeholder="Search…" />
      <CloseIcon size={16} aria-label="Clear search" />
    </div>
  );
}

Icon props

All icons accept the same prop contract:

| Prop | Type | Default | Description | |---|---|---|---| | size | number \| string | 24 | Width and height in pixels | | color | string | currentColor | Fill or stroke colour | | className | string | — | CSS class for styling | | title | string | — | Accessible title for informative icons | | aria-hidden | boolean | — | Set to true for decorative icons |

Accessibility

For decorative icons (purely visual, meaning conveyed by adjacent text):

<SearchIcon aria-hidden="true" />

For informative icons (the icon itself conveys meaning):

<SearchIcon title="Search" role="img" />

Integration with core

Icons are used inside core components automatically. You can also pass them as props:

import { Button } from '@ui-construction-library/core';
import { PlusIcon } from '@ui-construction-library/icons';

<Button leftIcon={<PlusIcon size={16} />}>Add item</Button>

Roadmap

The icon package now follows a staged production roadmap with a target scope of 290 icons across 10 categories. The current implementation is focused on Batch A foundations: navigation, actions, status, users/auth, and visibility toggles.

Planning source of truth:

  • docs/planning/icons-roadmap.md
  • packages/icons/src/icon-manifest.ts

Current implemented wave includes 62 ready icon modules tracked through the package manifest and build checks.

Compatibility

  • React 18 and 19
  • Tree-shakeable — only imported icons are included in the bundle

Public API

All icons are exported from the package root:

import { SearchIcon, CloseIcon, ChevronDownIcon, ... } from '@ui-construction-library/icons';

Troubleshooting

Icon not rendering — confirm react is installed and the icon name is spelled correctly (PascalCase with Icon suffix).

Icon colour not matching text — icons use currentColor by default. Set the parent element's color CSS property to control the icon colour.