2
0
mirror of https://github.com/iconify/iconify.git synced 2024-11-09 14:50:56 +00:00

Web component: publish update

This commit is contained in:
Vjacheslav Trushkin 2022-05-02 09:40:11 +03:00
parent 2365d9ff1c
commit dd85cacfcc
3 changed files with 6 additions and 6 deletions

View File

@ -21,19 +21,19 @@ Iconify Icon web component renders icons.
Add this line to your page to load IconifyIcon (you can add it to `<head>` section of the page or before `</body>`):
```html
<script src="https://code.iconify.design/iconify-icon/0.0.3/iconify-icon.min.js"></script>
<script src="https://code.iconify.design/iconify-icon/0.0.4/iconify-icon.min.js"></script>
```
or
```html
<script src="https://cdn.jsdelivr.net/npm/iconify-icon@0.0.3/dist/iconify-icon.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/iconify-icon@0.0.4/dist/iconify-icon.min.js"></script>
```
or, if you are building a project with something like WebPack or Rollup, you can include the script by installing `iconify-icon` as a dependency and importing it in your project:
```js
import IconifyIcon from 'iconify-icon';
import 'iconify-icon';
```
To add any icon, write something like this:

View File

@ -1,12 +1,12 @@
{
"name": "iconify-icon",
"version": "0.0.3",
"version": "0.0.4",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "iconify-icon",
"version": "0.0.3",
"version": "0.0.4",
"license": "MIT",
"dependencies": {
"@iconify/types": "^1.1.0"

View File

@ -2,7 +2,7 @@
"name": "iconify-icon",
"description": "Icon web component that loads icon data on demand. Over 100,000 icons to choose from",
"author": "Vjacheslav Trushkin <cyberalien@gmail.com> (https://iconify.design)",
"version": "0.0.3",
"version": "0.0.4",
"license": "MIT",
"main": "./dist/iconify-icon.cjs",
"types": "./dist/iconify-icon.d.ts",