Name: edx-icon
Owner: edX
Description: RequireJS plugin to load icons from the edx-ui-toolkit
Created: 2016-04-06 19:23:30.0
Updated: 2016-04-07 16:08:32.0
Pushed: 2016-04-07 14:51:35.0
Homepage: null
Size: 17
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
RequireJS plugin to use the edx-ui-toolkit's icons in your project.
Usage:
npm install --save edx-icon
'edx-icon': 'node_modules/edx-icon/icon'
to your RequireJS paths config.ne(['edx-icon!arrow-up'], function(arrowUpSvg) {
se strict';
.
This saves you from needing to remember the syntax and correct paths to load the icon directly with requirejs-text:
text!edx-ui-toolkit/svg/arrow-up.svg
But you can still do it that way too, if you'd like.