1.0.15 • Published 3 years ago

react-iconoteka v1.0.15

Weekly downloads
218
License
MIT
Repository
github
Last release
3 years ago

React Iconoteka

Is a React wrapper to use the iconoteka icons library, imported them from the SVG, converted to React components with svgr and then some quick magic to make it quite dynamic.

As simple as install the library

npm install react-iconoteka

and then just import the Icon component and set the name of the icon you wan to use

    import { Icon } from 'react-iconoteka'
    <Icon name="AddDocumentLightFill" />

It has the props types defined like this:

  className?: string;
  stroke: 'light' | 'regular' | 'medium' | 'bold';
  type: 'fill' | 'line';
  height?: number;
  width?: number;
  color?: string;

Use the svgr script from the package.json to create the React components from the SVG files in assets/icons. It uses the template already defined within components/Icon. After create the react components run the get-names script from package.json to strip the Iconoteka from the created components and create all the simple icon names type.

TODO: X Reduce icons files to use only simple icon (Fill or Line) nad set the stroke value by SVG values Add default imports for Different icon if user prefer to just import the Icon directly X Improve typings of the dist Story

Iconoteka

Web: https://iconoteka.com/ Github: https://github.com/iconoteka/iconoteka

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

1.0.3

3 years ago

0.2.0

3 years ago

0.1.8

3 years ago

0.1.9

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.4

3 years ago

0.1.5

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago