@web-component/material-icon

A web-component for easy Material Icon usage.

Usage no npm install needed!

<script type="module">
  import webComponentMaterialIcon from 'https://cdn.skypack.dev/@web-component/material-icon';
</script>

README

<material-icon>

A web-component for easy Material Icon usage.

Find icon names here.

Props

name type default required
name string yes
size string "sm" no

Usage

Add the Material Icons font and material-icon to your index.html.

<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<script src='https://unpkg.com/@web-component/material-icon@0.0.1/dist/material-icon.js'></script>