New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@edifice.io/icons

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@edifice.io/icons

Edifice Icons Library

  • 2.0.0-develop-rc.10
  • unpublished
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Edifice Icon Library

npm bundlephobia

SVG Icons Library to be used in any framework

Getting Started

Install

pnpm add @edifice.io/icons

Usage

Entry file

In your entry file (index.html), add the spritesheet icons.svg through CDN or direct url

<link
  rel="preload"
  href="https://cdn.jsdelivr.net/npm/@edifice.io/icons@1.5.16-develop-rc.4/dist/icons.svg"
  as="image"
  type="image/svg+xml"
/>
React

Use the Icon component and add the props name. You will have the list of all available icons

import { Icon } from '@edifice.io/react';

<Icon name="<name>" />;
Angularjs
  • First step, add in the entry file (can be different than index.html)
<link
  rel="preload"
  href="PATH/dist/icons.svg"
  as="image"
  type="image/svg+xml"
/>
  • Use directly svg tag to display an icon
<svg width="24" height="24">
 <use href={`${PATH}#smartphone`} />
</svg>

New icon

To add a new icon, please do as follow :

  • Check that the icon:
    • is correctly formatted with width="24" height="24" viewBox="0 0 24 24"
    • its paths have fill field set to currentColor (e.g: fill="currentColor")
  • Check if the icon must be placed in any of the existing category of the assets folder (e.g: audience, apps)
  • Add the icon in assets folder
  • Build the project nx build icons or pnpm run build:icons at root level
  • Commit and push your changes

Keywords

FAQs

Package last updated on 25 Sep 2024

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc