Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Iconly is designed to load and cache SVG icons in the browser, using IndexedDB to store the data. It retrieves the icons from a given SVG file, stores them in IndexedDB, and inserts them into the DOM for easy access and use.
Iconly is designed to load and cache SVG icons in the browser, using IndexedDB to store the data. It retrieves the icons from a given SVG file, stores them in IndexedDB, and inserts them into the DOM for easy access and use.
1kB gzipped
➤ Install
$ yarn add iconly
➤ Import
import Iconly from 'iconly';
➤ Usage
const iconly = new Iconly({
file: './sprite.svg',
version: '1.0',
debug: true,
});
iconly.init().then(() => console.log('Iconly is initialized and icons are loaded.'));
<svg>
<use href="#icon-name"></use>
</svg>
File with icons
<svg preserveAspectRatio="none" fill="none">
<symbol id="icon-one" viewBox="0 0 300 300">
<path ... />
</symbol>
<symbol id="icon-two" viewBox="0 0 300 300">
<path ... />
</symbol>
...
</svg>
➤ Options
Option | Type | Default | Description |
---|---|---|---|
file | string | './icons.svg' | The URL of the SVG file containing the icons. |
version | string | '1.0' | The version of the icon set. |
debug | boolean | false | If true , debug information and errors will be logged to the console. |
container | string | HTMLElement | document.body | The container element where the icons will be injected. Can be a CSS selector string or an HTMLElement. |
➤ License
iconly is released under MIT license
FAQs
Iconly is designed to load and cache SVG icons in the browser, using IndexedDB to store the data. It retrieves the icons from a given SVG file, stores them in IndexedDB, and inserts them into the DOM for easy access and use.
The npm package iconly receives a total of 0 weekly downloads. As such, iconly popularity was classified as not popular.
We found that iconly demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.