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

material-ui-customizable-icons

v0.2.5

Published

A set of minimalistic customizable material design SVG-icon components for React.

Downloads

39

Readme

material-ui-customizable-icons

Material-UI Customizable Icons

A set of minimalistic customizable material design SVG-icon components for React.

Requirements

  • Node 7.5.0 or newer (not tested on earlier versions)
  • Typescript 2.1.5 or newer (not tested on earlier versions)
  • Babel 6.2.2 or newer (not tested on earlier versions)

Required Knowledge

I recommend that you get to know React and Material-UI.

Installation

npm i material-ui-customizable-icons --save

Usage

Once installed, just import and use the component:

import React from 'react';
import Active from 'material-ui-customizable-icons/Active';

const className = 'custom-icon';
const viewBox = '0 0 48 48';
const transform = 'scale(2)';
const style = {
  width: '48px',
  height: '48px',
};
const pallet = {
  circle: 'rgba(169, 169, 169, 1)',
  tick: 'rgba(255, 255, 255, 1)',
};

const Example = () => (
  <Active
    className={className}
    style={style}
    transform={transform}
    pallet={pallet}
  />
);

export default Example;

Common Properties

| Props | Options | Default | Description | | ------------- |-------------| -----| -------- | | className | String | '' | Adds custom class to SVG container.| | style | Object | {} | Adds custom inline styles to SVG container. | | viewBox | String | '0 0 24 24' | Defines view-box attribute of SVG container.| | transform | String | '0 0 24 24' | The transform property applies a 2D or 3D transformation to an element.| | pallet | Object | {} | Component-specific colors pallet. |

Components list and their specific pallets:

| Component | Preview | Pallet properties to specify colors for | | ------------- |-------------| -------- | | Active | Active Icon | circle, tick | | Inactive | Inactive Icon | circle, tick, crossing | | ChevronUp | ChevronUp Icon | primary | | ChevronDown | ChevronDown Icon | primary | | ChevronLeft | ChevronLeft Icon | primary | | ChevronRight | ChevronRight Icon | primary | | ArrowUp | ArrowUp Icon | primary | | ArrowDown | ArrowDown Icon | primary | | ArrowLeft | ArrowLeft Icon | primary | | ArrowRight | ArrowRight Icon | primary | | CaretUp | CaretUp Icon | primary | | CaretDown | CaretDown Icon | primary | | CaretLeft | CaretLeft Icon | primary | | CaretRight | CaretRight Icon | primary | | ViewArticles | ViewArticles Icon | primary | | ViewGrid | ViewGrid Icon | primary | | ViewHeadlines | ViewHeadlines Icon | primary | | ViewList | ViewList Icon | primary | | Hamburger | Hamburger Icon | primary | | Edit | Edit Icon | primary | | Cancel | Cancel Icon | primary | | Undo | Undo Icon | primary | | Erase | Erase Icon | primary | | Save | Save Icon | primary | | Delete | Delete Icon | cap, bucket, cross | | MoveUp | MoveUp Icon | arrow, strip | | MoveDown | MoveDown Icon | arrow, strip | | MoveLeft | MoveLeft Icon | arrow, strip | | MoveRight | MoveRight Icon | arrow, strip | | Search | Search Icon | stick, ring | | SearchPlus | SearchPlus Icon | stick, ring, plus | | SearchMinus | SearchMinus Icon | stick, ring, minus | | Github | Github Icon | cat, ring |

Contribute

  1. Submit an issue
  2. Fork the repository
  3. Create a dedicated branch (never ever work in master)
  4. The first time, run command: yarn into the directory
  5. Fix bugs or implement features

Future

  • Fix distribution type definitions to handle "import {...} from 'material-ui-customizable-icons'" imports
  • Add tests
  • Add examples directory

License

This project is licensed under the terms of the MIT license