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

@qonsoll/icons

v1.1.6

Published

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

Downloads

23

Readme

@qonsoll/icons

Install

Install dependencies

npm install --save @qonsoll/react-design

or

yarn add @qonsoll/react-design

Install library

npm install --save @qonsoll/icons

or

yarn add @qonsoll/icons

Usage

How to import component?

import { Icon } from '@qonsoll/icons'

function App() {
  return <Icon name="BookmarkAddOutlined" />
}

Documentation

Storybook

Configuration

You can configure qonsoll/icons props using

import { Icon } from '@qonsoll/icons'

function App() {
  return <Icon name="BookmarkAddOutlined" size="24px" fill="#6648bf" />
}

| Key | Default | Notes | | ----------- | --------------------- | ------------------------------- | | fill | black | Inlined icons #424851 | | size | 24px | Inlined icons 16px |

How to update package step-by-step

You can write in terminal run storybook, and see all changes on Storybook

  1. Add file.svg to src/icons/(Filled/Outline)
  2. Next create new IconComponent
    1. Go to src/components/SvgComponents(Filled/Outline)
    2. Create new IconComponent with two props: size, fill
      1. Add in return all content from file.svg (svg, path)
        1. Outline icons - change stroke="black" -> stroke={fill}
        2. Filled icons - change fill="black" -> fill={fill}
    3. open index.js inside (src/components/SvgComponents(Filled/Outline))
      1. import Icon(Filled/Outlined) from "./IconComponent"
      2. export {...IconComponents, Icon(Filled/Outlined) }
      3. export default {...IconComponents, Icon(Filled/Outlined) }
    4. Go to src/components/index.js
      1. import {...IconComponents, Icon(Filled/Outlined) } from "./IconFolder"
      2. export {...IconComponents, Icon(Filled/Outlined) }
    5. Go to src/constants/iconPropTypes.js
      1. update PROP_TYPES.name, with new IconComponent
    6. Go to src/constants/namesMap.js
      1. import {...IconComponents, Icon(Filled/Outlined)} from "../components/SvgComponents(Filled/Outline)"
      2. const ICONS_NAMES = {...IconComponents, Icon(Filled/Outlined): <Icon(Filled/Outlined) />}