We're using BrowserStack to make sure these components work on the browsers developers care about.
There are 4 versions of this element:
- author-icon.min.js (ES6 Minified for Production)
- author-icon.js (ES6 Unminified for Debugging)
- author-icon.es5.min.js (ES5 Minified for Production)
- author-icon.es5.js (ES5 Unminified for Debugging)
Each version has it's own source map, so it's always possible to trace activity back to a specific code block in the source.
You only need to choose one of these files. If you need to support Internet Explorer, older versions of Chrome/Firefox/Safari, then you likely need the ES5 version.
Via Global CDN
<html> <head> <script src="https://cdn.author.io/author-elements/base/1.0.0/author-base.min.js"></script> <script src="https://cdn.author.io/author-elements/icon/x.x.x/author-icon.min.js"></script> </head> </html>
If the base class is not yet installed, install it:
npm install @author.io/element-base -S
Next, install the icon module locally:
npm install @author.io/element-icon -S
Then include them in your HTML:
<html> <head> <script src="./firstname.lastname@example.org/element-base/dist/author-base.min.js"></script> <script src="./email@example.com/element-icon/dist/author-icon.min.js"></script> </head> <body> </body> </html>