1.2.16 • Published 6 months ago
jao-icons v1.2.16
JAO icon set
Pixel-based icon set made by Jeffrey Arts, based on binary 2-dimensional arrays. This module will generate SVG icons, based on the available icons in the set Icon(<size/name>)
Installation
npm install --save jao-icons
yarn add jao-icons
How to use
1. Generate SVG elements
import { Icon } from "jao-icons"
Icon("small/cross")
// Output: SVG domElement
2. Get the binary array
import { iconMap } from "jao-icons"
console.log(iconMap.small.cross)
// Output: 2-Dimensional array
// [
// [1,0,0,0,1],
// [0,1,0,1,0],
// [0,0,1,0,0],
// [0,1,0,1,0],
// [1,0,0,0,1]
// ]