0.2.5 • Published 7 years ago

material-ui-customizable-icons v0.2.5

Weekly downloads
12
License
MIT
Repository
github
Last release
7 years ago

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

PropsOptionsDefaultDescription
classNameString''Adds custom class to SVG container.
styleObject{}Adds custom inline styles to SVG container.
viewBoxString'0 0 24 24'Defines view-box attribute of SVG container.
transformString'0 0 24 24'The transform property applies a 2D or 3D transformation to an element.
palletObject{}Component-specific colors pallet.

Components list and their specific pallets:

ComponentPreviewPallet properties to specify colors for
ActiveActive Iconcircle, tick
InactiveInactive Iconcircle, tick, crossing
ChevronUpChevronUp Iconprimary
ChevronDownChevronDown Iconprimary
ChevronLeftChevronLeft Iconprimary
ChevronRightChevronRight Iconprimary
ArrowUpArrowUp Iconprimary
ArrowDownArrowDown Iconprimary
ArrowLeftArrowLeft Iconprimary
ArrowRightArrowRight Iconprimary
CaretUpCaretUp Iconprimary
CaretDownCaretDown Iconprimary
CaretLeftCaretLeft Iconprimary
CaretRightCaretRight Iconprimary
ViewArticlesViewArticles Iconprimary
ViewGridViewGrid Iconprimary
ViewHeadlinesViewHeadlines Iconprimary
ViewListViewList Iconprimary
HamburgerHamburger Iconprimary
EditEdit Iconprimary
CancelCancel Iconprimary
UndoUndo Iconprimary
EraseErase Iconprimary
SaveSave Iconprimary
DeleteDelete Iconcap, bucket, cross
MoveUpMoveUp Iconarrow, strip
MoveDownMoveDown Iconarrow, strip
MoveLeftMoveLeft Iconarrow, strip
MoveRightMoveRight Iconarrow, strip
SearchSearch Iconstick, ring
SearchPlusSearchPlus Iconstick, ring, plus
SearchMinusSearchMinus Iconstick, ring, minus
GithubGithub Iconcat, 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

0.2.5

7 years ago

0.2.4

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago