Show list of icons and their names.
https://luna.liriliri.io/?path=/story/icon-list
Add the following script and style to your page.
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/luna-icon-list/luna-icon-list.css" />
<script src="//cdn.jsdelivr.net/npm/luna-icon-list/luna-icon-list.js"></script>
You can also get it on npm.
npm install luna-icon-list --save
import 'luna-icon-list/luna-icon-list.css'
import LunaIconList from 'luna-icon-list'
const iconList = new LunaIconList(container)
iconList.setIcons([
{
src: '/logo.png',
name: 'Luna',
},
])
- filter(string | RegExp | AnyFn): Icon filter.
- selectable(boolean): Whether icon is selectable.
- size(number): Icon size.
Append icon.
Clear all icons.