mirror of
https://github.com/iconify/iconify.git
synced 2025-01-06 07:20:40 +00:00
chore: fix exports in iconify-icon
This commit is contained in:
parent
5609290538
commit
3463f87533
@ -20,13 +20,13 @@ 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/1.1.0-beta.1/iconify-icon.min.js"></script>
|
||||
<script src="https://code.iconify.design/iconify-icon/1.1.0-beta.4/iconify-icon.min.js"></script>
|
||||
```
|
||||
|
||||
or
|
||||
|
||||
```html
|
||||
<script src="https://cdn.jsdelivr.net/npm/iconify-icon@1.1.0-beta.1/dist/iconify-icon.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/iconify-icon@1.1.0-beta.4/dist/iconify-icon.min.js"></script>
|
||||
```
|
||||
|
||||
or, if you are building a project with a bundler, you can include the script by installing `iconify-icon` as a dependency and importing it in your project:
|
||||
|
@ -2,7 +2,7 @@
|
||||
"name": "iconify-icon",
|
||||
"description": "Icon web component that loads icon data on demand. Over 150,000 icons to choose from",
|
||||
"author": "Vjacheslav Trushkin <cyberalien@gmail.com> (https://iconify.design)",
|
||||
"version": "1.1.0-beta.1",
|
||||
"version": "1.1.0-beta.4",
|
||||
"publishConfig": {
|
||||
"tag": "next"
|
||||
},
|
||||
|
@ -65,8 +65,8 @@ export interface IconifyExportedFunctions
|
||||
appendCustomStyle: (value: string) => void;
|
||||
|
||||
// Render HTML
|
||||
iconToHTML: typeof iconToHTML;
|
||||
svgToURL: typeof svgToURL;
|
||||
iconToHTML: (body: string, attributes: Record<string, string>) => string;
|
||||
svgToURL: (svg: string) => string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -118,6 +118,8 @@ const {
|
||||
addCollection,
|
||||
calculateSize,
|
||||
buildIcon,
|
||||
iconToHTML,
|
||||
svgToURL,
|
||||
loadIcons,
|
||||
loadIcon,
|
||||
addAPIProvider,
|
||||
@ -135,6 +137,8 @@ export {
|
||||
addCollection,
|
||||
calculateSize,
|
||||
buildIcon,
|
||||
iconToHTML,
|
||||
svgToURL,
|
||||
loadIcons,
|
||||
loadIcon,
|
||||
addAPIProvider,
|
||||
|
Loading…
Reference in New Issue
Block a user