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

0.0.1 • Public • Published

@phragon-react/svg-icon-tabler

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

Icon maker for the https://github.com/tabler/tabler-icons icon collection.
Tabler website: https://tabler-icons.io/
Tabler version: 2.17.0

Tabler Icons

❯ Install

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

Usage

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

// add maker
addTablerSvgIconMaker();

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

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

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

Readme

Keywords

none

Package Sidebar

Install

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

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

17.7 MB

Total Files

12485

Last publish

Collaborators

  • websoftlab