Skip to content

mattecapu/md-icons-codepoints

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Material Design Icons Codepoints JSON

A JSON object for using material design icon font.

Install

The npm-way

npm i md-icons-codepoints --save

Usage

Just get them from the exported JSON object

import icons from 'md-icons-codepoints';

const myWiFiIcon = `<i class="material-design-icons">${icons.wifi}</i>`;

All codepoints are exported as Unicode chars, so be sure to provide the correct charset to your HTML file. The icon font will do the rest.

If you want to use them as HTML entities, it's easy:

function toHTMLHexEntity(icon) {
	return `&#x${icon.codePointAt(0)};`;
}

License

ISC

About

material design icons codepoints as a JSON object

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors