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>