1.2.0 • Published 4 years ago
@riot-material/rm-icon v1.2.0
icon set of Material Design for riot-material
Installation
You can install it via nodejs
npm install @riot-material/rm-iconor download one of the bundled file
/**
* `dist/index.amd.js`
* `dist/index.umd.js`
*/
requirejs.config({
paths: {
"@riot-material/rm-icon": "path/to/@riot-material/rm-icon",
},
});
require(['@riot-material/rm-icon'], function (IconComponent) {
// ...
});
/**
* `dist/index.js`
* `dist/index.es.js`
* npm installation
*/
import IconComponent from "@riot-material/rm-icon";otherwise you can include the script in your project html
<script src="@riot-material/rm-icon/index.umd.js" />and access it via
window.riotMaterial.components.icon;Documentation
Just write inside the tag the name of the chosen icon
Check the available icons here