Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dnanpm/icons

Package Overview
Dependencies
Maintainers
0
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dnanpm/icons

DNA Icons repository provides the set of icons used in various DNA projects. Icons are fetched directly from Figma, processed and published to NPM.

  • 2.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
264
decreased by-61.68%
Maintainers
0
Weekly downloads
 
Created
Source

DNA Icons repository provides the set of icons used in various DNA projects. Icons are fetched directly from Figma, processed and published to NPM.

Installation

Run install command in repository where DNA Icons should be added

npm install @dnanpm/icons

Usage example

React component

Standalone
import { Warning } from '@dnanpm/icons';

const MyComponent = () => {
    return (
        <Warning />
    );
};

export default MyComponent;
With Styleguide Icon wrapper
import { Warning } from '@dnanpm/icons';
import { Icon } from '@dnanpm/styleguide';

const MyComponent = () => {
    return (
        <Icon icon={Warning} />
    );
};

export default MyComponent;

SVG Sprite

Asset
import '@dnanpm/icons/sprite';
Javascript string
import sprite from '@dnanpm/icons/spriteJs';

const parser = new DOMParser();
console.log(parser.parseFromString(sprite, "image/svg+xml"));

Keywords

FAQs

Package last updated on 11 Nov 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