1.5.3 • Published 7 years ago

mmsvg v1.5.3

Weekly downloads
11
License
MIT
Repository
github
Last release
7 years ago

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

1.5.3

7 years ago

1.5.1

7 years ago

1.5.0

7 years ago

1.4.0

7 years ago

1.3.0

8 years ago

1.1.1

8 years ago

1.0.0

8 years ago

0.0.4

9 years ago