README
vanilla-icon
Size < 1kb
Install
$ npm install --save vanilla-message
Use
import List from 'vanilla-icon';
// add https://www.iconfont.cn/ css-iconfont
const icon = Icon('close', { type: 'font' });
document.body.append(iconi);
Size < 1kb
<script type="module">
import vanillaIcon from 'https://cdn.skypack.dev/vanilla-icon';
</script>
Size < 1kb
$ npm install --save vanilla-message
import List from 'vanilla-icon';
// add https://www.iconfont.cn/ css-iconfont
const icon = Icon('close', { type: 'font' });
document.body.append(iconi);