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

@stratakit/icons

v0.4.5

Published

A standalone SVG icon library for StrataKit

Readme

@stratakit/icons

Standalone .svg icons for StrataKit.

Symbols

Each icon is available as a single SVG file, which can contain multiple variations defined as <symbol> elements.

All icons provide regular and large variations, allowing the icons to be used at different sizes with increasing detail and quality:

  • icon (default)
  • icon-large

Some icons may include symbols for other variations, such as filled and filled-large.

Named exports include the symbol fragment (e.g. #icon or #icon-large) for you. Raw .svg imports require appending it yourself.

Installation

Using your package manager of choice, install the latest version of @stratakit/icons.

npm add @stratakit/icons

[!NOTE]

As @stratakit/icons requires bundler configuration, consider making it a peer dependency if you're building a package that uses @stratakit/icons.

Usage

There are two ways to import an icon:

  • Named JS exports return ready-to-use, complete URLs for specific symbols.
  • Raw SVG imports return the URL of the SVG file (without a symbol fragment).

Both approaches require bundler configuration to load SVGs as asset URLs.

Named exports

Import the symbols you need from the icon's subpath (without the .svg extension):

import { svgPlaceholder, svgPlaceholderLarge } from "@stratakit/icons/placeholder";

These named exports give you complete URLs that can be passed directly to the Icon component from @stratakit/mui or @stratakit/foundations:

import { Icon } from "@stratakit/mui";

<Icon href={svgPlaceholder} />;
<Icon href={svgPlaceholderLarge} size="large" />;

Raw SVG imports

Directly importing the raw .svg file gives you its asset URL without selecting a symbol. Append the desired symbol ID when using the URL:

import svgPlaceholder from "@stratakit/icons/placeholder.svg";

<Icon href={`${svgPlaceholder}#icon`} />;
<Icon href={`${svgPlaceholder}#icon-large`} size="large" />;

TypeScript consumers may need a *.svg module declaration for raw imports, though this is sometimes handled automatically by build tools like Vite.

[!IMPORTANT] Icons of @stratakit/icons should always be used as external HTTP resources, because of SVG <use> element restrictions. Do not inline the SVG content directly in your React components. Data URIs and non-HTTP protocols are supported on a best effort basis using client-side JavaScript.

Bundler configuration

Configure your bundler to emit SVG files and return their URLs rather than inline their contents. This is necessary regardless of whether you are using named exports or raw .svg imports.

Vite

Within your Vite configuration, you will need to configure build.assetsInlineLimit to ensure .svg files are not inlined:

export default defineConfig({
	// …
	build: {
		assetsInlineLimit: (filePath) => {
			if (filePath.endsWith(".svg")) return false;
			return undefined;
		},
	},
});

Rsbuild

Within your Rsbuild configuration, you will need to configure output.dataUriLimit to ensure .svg files are not inlined:

export default {
	// …
	output: {
		dataUriLimit: {
			svg: 0,
		},
	},
};

esbuild

With esbuild, you will need to enable the file loader for .svg files:

esbuild.build({
	// …
	loader: {
		".svg": "file",
	},
});

[!NOTE] esbuild does not support bundling of assets when using the URL constructor, so you may need to additionally use a plugin to transform those into static import statements.

Contributing

Are you interested in helping StrataKit grow? You can submit feature requests or bugs by creating issues.

If you're interested in contributing code, please read CONTRIBUTING.md for more information.