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

@payfit/unity-icons

v2.0.0

Published

A comprehensive icon library for the Unity design system, provided as React Components.

Readme

@payfit/unity-icons

A comprehensive icon library for the Unity design system, provided as React Components.

Installation

Install the package in your project. We recommend you use this package alongside @payfit/unity-components.

yarn add @payfit/unity-icons @payfit/unity-components

Ensure that react and react-dom are also installed in your project:

yarn add react react-dom

Usage

This package provides two ways to import and use icons.

1. Import the provider

Wrap your application with the IconProvider to make all icons available in your application.

import { UnityIconsProvider } from '@payfit/unity-icons'

function App() {
  return (
    <UnityIconsProvider>
      <MyComponent />
    </UnityIconsProvider>
  )
}

2. Use the IconSprite component

Render any icon using the IconSprite component, passing the icon's name as the src prop.

import { IconSprite } from '@payfit/unity-icons'

function MyComponent() {
  return <IconSprite src="Icon1" />
}

3. Use the Icon component from unity components

You can also use the Icon component from @payfit/unity-components to render icons (recommended). The Icon component provides additional customization options that follow design system guidelines, and uses the IconSprite component internally.

import { Icon } from '@payfit/unity-components'

function MyComponent() {
  return <Icon src="Icon1" size={20} />
}

API

The icons library uses SVG sprites to render icons. All icons are referenced by their name, which is the filename in the /svg folder without the extension. The IconSprite component accepts all the props of an SVG element.

import { IconSprite } from '@payfit/unity-icons'

function MyComponent() {
  return <IconSprite src="AirplaneFilled" width="32" height="32" fill="#000" />
}

We recommend you customize the icon's color, sizes, and other properties via the Icon component from @payfit/unity-components.

Customization

All icons use currentColor for their fill or stroke, allowing you to easily customize the color using CSS or the color prop.

TypeScript Support

This package includes TypeScript definitions, and a list of all the available icon names is exported as a type.

import { iconNames, UnityIcon } from '@payfit/unity-icons'

const myIcons: UnityIcon[] = ['AirplaneFilled', 'CakeOutlined']

console.log(iconNames) // ['AirplaneFilled', 'AirplaneOutlined', ...+309 icons more]

Browser Support

This package supports all modern evergreen browsers. It does not support IE.