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

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.396.0
    10
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.396.0
    10
  • 0.0.2
    9
  • 0.0.1
    9

Package Sidebar

Install

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

Weekly Downloads

28

Version

0.396.0

License

MIT

Unpacked Size

6.41 MB

Total Files

4479

Last publish

Collaborators

  • websoftlab