0.0.2 • Published 1 year ago

@phragon-react/svg-icon-lucide v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@phragon-react/svg-icon-lucide

Extender for the @phragon-react/svg-icon package.

Icon maker for the https://github.com/lucide-icons/lucide icon collection.\ Lucide website: https://lucide.dev/ \ Lucide version: 0.211.0

❯ Install

$ npm install --save react @phragon-react/svg-icon @phragon-react/svg-icon-lucide

Usage

import { addSvgIcons, SvgIcon } from "@phragon-react/svg-icon"
import { addLucideSvgIconMaker } from "@phragon-react/svg-icon-lucide";

// add maker
addLucideSvgIconMaker();

// load icons
import("@phragon-react/svg-icon-lucide/lucide-all.json")
    .then(({ icons }) => {
	    addSvgIcons("lucide", icons);
    })
    .catch(error => {
	    console.error("lucide icons load failure", error);
    });

// usage icon
function SomeMenuIconComponent() {
	return (
		<SvgIcon icon="menu" />
	);
}
0.0.2

1 year ago

0.0.1

1 year ago