0.6.0 • Published 4 months ago

@josemi-icons/react v0.6.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

@josemi-icons/react

npm version license

Installation

Add this package to your project using yarn or npm:

$ yarn add react @josemi-icons/react

Usage

This package exports each icon individually as named exports, so you can import the icons that you really need for your project:

import React from "react";
import {CheckIcon} from "@josemi-icons/react";

export const App = () => (
    <CheckIcon />
);

Customize icon using props

You can use the following props to customize the icon:

Prop nameDescriptionTypeDefault value
sizeThe icon size.String"1em"
colorThe icon color.String"currentColor"
strokeThe width of the stroke to be applied to the icon path.String or Number2

Example:

import React from "react";
import {LineIcon} from "@josemi-icons/react";

export const App = () => (
    <LineIcon color="#eaeaea" size="32px" />
);

Customize icons using CSS

You can use the color and font-size properties of CSS to customize the icon color and size:

import React from "react";
import {HomeIcon} from "@josemi-icons/react";

export const App = () => (
    <span style={{color: "blue", fontSize: "32px"}}>
        <HomeIcon />    
    </span>
);

License

Under the MIT LICENSE.

0.6.0

4 months ago

0.5.1

5 months ago

0.5.0

7 months ago

0.4.0

8 months ago

0.3.2

9 months ago

0.3.1

9 months ago

0.3.0

9 months ago

0.2.0

10 months ago

0.1.0

10 months ago