@mochicons/react
v0.0.1
Published
An open source and hand-crafted SVG icons library
Downloads
4
Maintainers
Readme
@mochicons/react
Installation
Add this package to your project using yarn:
$ yarn add react @mochicons/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 "@mochicons/react";
export const App = () => (
<CheckIcon />
);
Customize icons
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 "@mochicons/react";
export const App = () => (
<span style={{color: "blue", fontSize: "32px"}}>
<HomeIcon />
</span>
);
License
Under the MIT LICENSE.