@phragon-react/svg-icon-lucide
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

@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" />
	);
}

Readme

Keywords

none

Package Sidebar

Install

npm i @phragon-react/svg-icon-lucide

Weekly Downloads

28

Version

0.0.2

License

MIT

Unpacked Size

4.27 MB

Total Files

3156

Last publish

Collaborators

  • websoftlab