@anypoint-web-components/anypoint-icons
v1.0.1
Published
Anypoint icons set.
Downloads
25
Readme
anypoint-icons
A set of icons for Anypoint web components.
Usage
Installation
npm install --save @anypoint-web-components/anypoint-icons
In an html file
<html>
<head>
<script type="module">
import '@anypoint-web-components/anypoint-icons/anypoint-icons.js';
import '@polymer/iron-icon/iron-icon.js';
</script>
</head>
<body>
<iron-icon icon="anypoint:add"></iron-icon>
</body>
</html>
In a LitElement
import { LitElement, html } from 'lit-element';
import '@anypoint-web-components/anypoint-icons/anypoint-icons.js';
import '@polymer/iron-icon/iron-icon.js';
class SampleElement extends LitElement {
render() {
return html`
<iron-icon icon="anypoint:add"></iron-icon>
`;
}
}
customElements.define('sample-element', SampleElement);
Development
git clone https://github.com/anypoint-web-components/anypoint-icons
cd anypoint-icons
npm install
Running the demo locally
npm start
Running the tests
npm test