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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@schematichq/schematic-icons

v0.5.2

Published

React component library for Schematic's icon system with TypeScript support

Downloads

9,943

Readme

Schematic Icons

A React component library for displaying Schematic icons. Built with TypeScript and modern CSS, providing type-safe icon usage.

npm version License Bundle Size

Features

  • 🎨 100+ carefully crafted icons
  • 🔒 TypeScript support with type-safe icon names
  • ⚡️ Zero configuration required
  • 🎯 Tree-shakeable
  • 🎭 Customizable through CSS classes and styles
  • 📦 Lightweight with minimal dependencies

Installation

yarn add @schematichq/schematic-icons

Quick Start

import { Icon } from '@schematichq/schematic-icons';

function MyComponent() {
  return (
    <div>
      <Icon name="check" />
      <Icon name="close" className="text-red" />
      <Icon name="arrow-right" style={{ color: 'blue' }} />
    </div>
  );
}

Usage

React Component

The Icon component is the main way to use Schematic icons in your React application:

import { Icon } from '@schematichq/schematic-icons';

function MyComponent() {
  return (
    <div>
      <Icon name="check" /> {/* Will error if 'check' is not a valid icon */}
      <Icon name="close" className="text-red" />
      <Icon name="arrow-right" style={{ color: 'blue' }} />
    </div>
  );
}

Props

The Icon component accepts the following props:

interface IconProps {
  /** The name of the icon to display */
  name: IconNames;
  /** Additional CSS classes to apply to the icon */
  className?: string;
  /** Additional CSS styles to apply to the icon */
  style?: React.CSSProperties;
}

TypeScript Support

The package provides full TypeScript support with type-safe icon names:

import { IconNames } from '@schematichq/schematic-icons';

// Type-safe icon names
const iconName: IconNames = 'check'; // Will error if 'check' is not a valid icon

Available Icons

The package includes 100+ icons across various categories:

Navigation

  • arrow-up, arrow-down, arrow-left, arrow-right
  • chevron-up, chevron-down, chevron-left, chevron-right
  • backspace, menu, sidebar

Actions

  • check, close, search, filter
  • copy, link, move, pencil
  • folder, folder-plus, folder-minus

UI Elements

  • dots-horizontal, dots-vertical
  • plus-minus, plus-rounded-outline
  • collapse, collapse-empty

Payment & Finance

  • stripe, paypal, visa, mastercard
  • amex, applepay, amazonpay
  • wallet, credit, bank

Technology

  • github, google, clerk
  • webhook, integration, api
  • code, server-search, database

For a complete list of available icons, you can use the iconsList export:

import { iconsList } from '@schematichq/schematic-icons';

console.log(iconsList); // Array of all available icon names

API Reference

Exports

The package exports the following:

// React Component
export { Icon } from '@schematichq/schematic-icons';

// Types
export type { IconProps } from '@schematichq/schematic-icons';
export type { IconNames } from '@schematichq/schematic-icons';

// Utilities
export { iconsList } from '@schematichq/schematic-icons';

Types

  • IconNames: A union type of all available icon names
  • IconProps: The props interface for the Icon component
  • iconsList: An array of all available icon names

Development

  1. Clone the repository:

    git clone https://github.com/SchematicHQ/schematic-icons.git
    cd schematic-icons
  2. Install dependencies:

    yarn install

Available Commands

The following yarn commands are available:

# Build the project (generates icons and compiles TypeScript)
yarn build

# Clean build artifacts and generated files
yarn clean

# Generate icon fonts and type definitions
yarn generate

# Run a complete build (clean, generate, and build)
yarn build:all

# Run ESLint on TypeScript files
yarn lint

# Prepare the package for publishing (runs build)
yarn prepare

Contributing

Please see our Contributing Guide for details.

License & Attribution

MIT © Schematic

This package includes icons from The Noun Project under a paid license. Icons may only be used as part of this package.

Missing attribution? Submit a request.