Socket
Book a DemoInstallSign in
Socket

@odx/app-icons

Package Overview
Dependencies
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@odx/app-icons

A library of app icon assets for ODX

2.2.0
latest
npmnpm
Version published
Maintainers
3
Created
Source

@odx/app-icons

A lightweight library for displaying app icons as custom elements. This package provides flexible imports, allowing you to include only what you need to optimize your project.

Installation (npm)

Install the library via npm:

npm i @odx/app-icons

Usage

The library provides a custom custom element <odx-app-icon> to display app icons.

We rely on the esm module behavior in order to keep a global state. If you load an asset from a CDN ensure that the same module of @odx/assets-utils is used throughout your application. One common technique is the usage of an import map (<script type="importmap">).

Import custom element:

import '@odx/app-icons';

Import specific app icon sets

To optimize your bundle, you can import only the specific app icon set you need:

// All app icon sets
import '@odx/app-icons/all';

// Core app icons
import '@odx/app-icons/core';

Import individual icons

To optimize your bundle, you can import only the specific app icons you need:

import '@odx/app-icons/core/smt';

Example Usage

Element API

  • name: string - <set-name>::<name> or <name> with default set (core)
  • set: string - <set-name>

HTML Example

<script type="module">
  import '@odx/app-icons/core';
</script>

<odx-app-icon name="smt" set="core"></odx-app-icon>

CDN

<script src="https://esm.sh/@odx/app-icons" type="module"></script>
<script src="https://esm.sh/@odx/app-icons/<set-name>" type="module"></script>

JavaScript Example

// Import the core app icon set
import '@odx/app-icons/core';

// Create a app icon dynamically
const appIcon = document.createElement('odx-app-icon');
appIcon.name='core::smt'

document.body.appendChild(appIcon);

Browser Support

This library leverages modern web technologies such as Shadow DOM for encapsulation and CSSStyleSheet.replaceSync() for efficient stylesheet updates. It targets the ES2022 specification, taking advantage of the latest JavaScript features. These technologies are widely supported in most modern browsers.

Supported Browsers:

  • Chrome 97+
  • Edge 97+
  • Firefox 104+
  • Safari 14+
  • Opera 83+

Live demo ⭐

For a overview of all available assets please refer to our Asset Viewer.

FAQs

Package last updated on 03 Sep 2025

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.