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 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-swm-icon-pack

v1.0.14

Published

React component for SWM icons

Downloads

1,776

Readme

React SWM Icon Pack

NPM

Cover art

     

About the pack

Carefully designed icons to help your projects shine like a diamond. More than 1100 icons divided into 4 styles and several categories are ready as react components to speed up building your product.

SWM Icon Pack was originally published on Figma Community as SVG icon pack, now the family expanded thanks to React Icon Pack and Figma Plugin, everything is free and ready to use.

     

What’s in it for you?

  • More than 1100 react components, ready to use right away;

  • 4 styles of icons - outline, broken, duotone, and curved;

  • Customization options - stroke, size, set, and color;

  • Easy preview on Figma Community;

     

Cover art

Cover art

Cover art

Cover art

     

Related projects

     

Installation

yarn add react-swm-icon-pack

or

npm i react-swm-icon-pack

     

Usage

import React from 'react';
import { Air } from 'react-swm-icon-pack';

const App = () => {
  return <Air />;
};

export default App;

You can also pass inline props to the icon

<Air color="purple" set="duotone" size="40" />

or even your custom styles

<Air style={{ transform: 'scale(2, 0.5)' }} />

You can also use SWMIcon component and pass as a prop icon name you prefer:

import React from 'react';
import { SWMIcon } from 'react-swm-icon-pack';

const App = () => {
  return <SWMIcon name="Air" color="purple" set="duotone" />;
};

export default App;

You can also include the whole icon pack:

import React from 'react';
import * as SWMIconPack from 'react-swm-icon-pack';

const App = () => {
  return <SWMIconPack.Air color="purple" set="duotone" size="40" />;
};

export default App;

You can also use SWMIconProvider component, this will make all the icons that are within the context use the Provider properties. Setting props for any icon wrapped in SWMIconProvider will override Provider's properties.

import React from 'react';
import { SWMIconProvider, Air, Calendar, Cam } from 'react-swm-icon-pack';

const App = () => {
  return (
    <SWMIconProvider color="purple" set="duotone" size="40" strokeWidth="1.8">
      <Air />
      <Calendar />
      <Cam color="blue" set="curved" />
    </SWMIconProvider>
  );
};

export default App;

     

Available props

| Prop | Type | Default | Description | | ------------- | ------------------------------------- | --------- | ----------------------------------------------- | | name | string | | The icon you want to render | | style | object | | Custom styles property | | set | outline broken duotone curved | outline | Icons set option | | size | string number | 24 | Size of icon (applies as both width and height) | | strokeWidth | string number | 1.5 | Line stroke for icons | | color | string | #001A72 | Primary color for icons |