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

@sanity/icons

v5.2.2

Published

The Sanity icons.

Readme

@sanity/icons

The Sanity icons.

npm install @sanity/icons

# Install peer dependencies (requires React 18 or newer)
npm install react

npm version

Finding the right icon

icons.sanity.dev is the searchable catalog of the full icon set. The search matches meaning, not just names, so you don't need to know what an icon is called or how it's spelled – searching “settings” surfaces cog, wrench, and controls, each with a copyable import snippet:

Searching “settings” surfaces cog, wrench, and controls

The grid view shows the whole set at a glance:

The icon catalog's grid view at icons.sanity.dev

Usage

Every icon is published on its own export path. The subpath is the icon's name without the Icon suffix, e.g. RocketIcon lives at @sanity/icons/Rocket. Importing icons this way keeps bundles small and treeshaking fast, since your bundler skips parsing and resolving the full icon set to reach the handful of icons you actually use:

import {RocketIcon} from '@sanity/icons/Rocket'

function App () {
  return <RocketIcon style={{fontSize: 72}}>
}

Each icon is also the module's default export, which makes lazy-loading a single icon easy:

import {lazy} from 'react'

const RocketIcon = lazy(() => import('@sanity/icons/Rocket'))

Dynamic icons

The root entry exposes the dynamic <Icon> component, the icons map, and their types – and nothing else. Individual icons are not re-exported from the root (these barrel exports were deprecated in v4 and removed in v5): import them from their subpath as shown above. If you import an icon from the root anyway, the import still fails to resolve at runtime, but the types resolve to a @deprecated never-typed tombstone whose message points at the subpath the icon lives on – so a moved icon is not mistaken for a deleted one.

Every entry in the icons map is a React.lazy component over the icon's subpath module, so importing the root entry pulls no icon code into your bundle – each icon is fetched as its own chunk the first time it renders.

<Icon> wraps the lazy icon in a <Suspense> boundary whose fallback is an svg with the same viewBox and dimensions (but no drawing content yet), so the icon slot reserves its final size immediately and the graphic pops in once loaded – the way an <img> with intrinsic dimensions loads:

import {Icon} from '@sanity/icons'

function App() {
  return <Icon symbol="rocket" style={{fontSize: 72}} />
}

When rendering components from the icons map directly, provide your own <Suspense> boundary:

import {icons} from '@sanity/icons'
import {Suspense} from 'react'

function App(props) {
  const IconComponent = icons[props.symbol]

  return (
    <Suspense fallback={null}>
      <IconComponent />
    </Suspense>
  )
}

License

MIT-licensed. See LICENSE.