Skip to content
This repository has been archived by the owner on Oct 30, 2022. It is now read-only.

ArthurClemens/mmsvg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mithril Material Design SVG icons

Material Design icons generated by mithril-icon-builder.

Icon repositories

Included are icons from:

Icon files

The SVG icons are embedded as Mithril elements. For instance the file with the home icon contains:

var m = require('mithril');
module.exports = m.trust('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>');

Using the icons

The icon files are in es5 module format and can be used in es5 and es6 projects:

import iconHome from "mmsvg/google/msvg/action/home";

m(".icon-home", iconHome);

Generates:

<div class="icon-home">
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
    <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"></path>
  </svg>
</div>

License

MIT

About

Material Design SVG icons as Mithril elements.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published