edx/edx-icon

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

edx-icon

npm version

RequireJS plugin to use the edx-ui-toolkit's icons in your project.

Usage:

  1. npm install --save edx-icon
  2. Add 'edx-icon': 'node_modules/edx-icon/icon' to your RequireJS paths config.
  3. Require an icon in your file:
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.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.