Material Design for riot-material
circular avatar component based onInstallation
You can install it via nodejs
npm install @riot-material/rm-circular-avatar
or download one of the bundled file
/**
* `dist/index.js`
*/
requirejs.config({
paths: {
"@riot-material/rm-circular-avatar": "path/to/@riot-material/rm-circular-avatar",
},
});
require(['@riot-material/rm-circular-avatar'], function (CircularAvatarComponent) {
// ...
});
/**
* `dist/index.es.js`
* npm installation
*/
import CircularAvatarComponent from "@riot-material/rm-circular-avatar";
otherwise you can include the script in your project html
<script src="@riot-material/rm-circular-avatar/index.js" />
and access it via
window.riotMaterial.components.circularAvatar;