mirror of
https://github.com/iconify/iconify.git
synced 2024-12-13 14:13:06 +00:00
41 lines
1.7 KiB
JavaScript
41 lines
1.7 KiB
JavaScript
|
import Component from '@glimmer/component';
|
||
|
import {
|
||
|
disableCache,
|
||
|
addIcon,
|
||
|
addCollection,
|
||
|
} from '@iconify/ember/components/iconify-icon';
|
||
|
import presentationPlay from '@iconify-icons/mdi-light/presentation-play';
|
||
|
import playIcon from '@iconify-icons/mdi-light/play';
|
||
|
|
||
|
// Disable cache to make sure icons are loaded from API
|
||
|
disableCache('all');
|
||
|
|
||
|
// Add 'mdi-light:play' as 'demo'
|
||
|
addIcon('demo', playIcon);
|
||
|
|
||
|
addIcon('experiment2', {
|
||
|
width: 16,
|
||
|
height: 16,
|
||
|
body: '<g fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M13 8.9c.1.6.2 1.1.4 1.7l.6 1.7l-.5.7H10c0 .5-.2 1-.6 1.4c-.4.4-.9.6-1.4.6c-.5 0-1.1-.2-1.4-.6c-.4-.4-.6-.9-.6-1.4H2.5l-.5-.7l.6-1.7c.2-.8.4-1.6.4-2.4V6c0-.7.1-1.4.4-2c.3-.7.7-1.2 1.2-1.7s1.1-.8 1.8-1C6.9 1.1 7.5 1 8 1c-.2.3-.4.7-.6 1.1c-.2 0-.4 0-.7.2c-.5.1-1 .4-1.4.8c-.4.3-.8.8-1 1.3c-.2.5-.3 1-.3 1.6v2.2c0 .9-.2 1.8-.4 2.7L3.2 12h9.6l-.4-1.1c-.175-.526-.274-1.13-.363-1.674L12 9c.4 0 .7 0 1-.1zM8 14c.2 0 .5-.1.7-.3c.2-.2.3-.4.3-.7H7c0 .3.1.5.3.7c.2.2.5.3.7.3zm7-10a3 3 0 1 1-6 0a3 3 0 0 1 6 0z"></path></g>',
|
||
|
});
|
||
|
|
||
|
// Add few mdi-light: icons
|
||
|
|
||
|
addCollection({
|
||
|
prefix: '',
|
||
|
icons: {
|
||
|
alert1: {
|
||
|
body: '<path d="M10.5 14c4.142 0 7.5 1.567 7.5 3.5V20H3v-2.5c0-1.933 3.358-3.5 7.5-3.5zm6.5 3.5c0-1.38-2.91-2.5-6.5-2.5S4 16.12 4 17.5V19h13v-1.5zM10.5 5a3.5 3.5 0 1 1 0 7a3.5 3.5 0 0 1 0-7zm0 1a2.5 2.5 0 1 0 0 5a2.5 2.5 0 0 0 0-5zM20 16v-1h1v1h-1zm0-3V7h1v6h-1z" fill="currentColor"/>',
|
||
|
},
|
||
|
link1: {
|
||
|
body: '<path d="M8 13v-1h7v1H8zm7.5-6a5.5 5.5 0 1 1 0 11H13v-1h2.5a4.5 4.5 0 1 0 0-9H13V7h2.5zm-8 11a5.5 5.5 0 1 1 0-11H10v1H7.5a4.5 4.5 0 1 0 0 9H10v1H7.5z" fill="currentColor"/>',
|
||
|
},
|
||
|
},
|
||
|
width: 24,
|
||
|
height: 24,
|
||
|
});
|
||
|
|
||
|
export default class IconDemoComponent extends Component {
|
||
|
iconData = presentationPlay;
|
||
|
}
|