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

@ndla/icons

Package Overview
Dependencies
Maintainers
0
Versions
216
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ndla/icons

A package containing icons used in NDLA frontends

  • 8.0.48-alpha.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
358
decreased by-48.56%
Maintainers
0
Weekly downloads
 
Created
Source

@ndla/icons

A package containing icons used in NDLA frontends

Installation

yarn add @ndla/icons
npm install @ndla/icons --save

Usage

import { VoiceprintLine, CameraFill } from "@ndla/icons";

const IconList = () => (
  <ul>
    <li>
      <VoiceprintLine /> Audio icon
    </li>
    <li>
      <CameraFill /> Camera icon
    </li>
  </ul>
);

Icons are currently grouped into four folders

  • common
  • license
  • editor
  • contentType

Development

TLDR: Change/Add/Remove svg file(s). Run node scripts/createTsIconComponents.mjs. Commit.

Add new svg file:

  1. Add svg file to an appropiate folder in icons/svg.
  2. Ensure that data-license and data-source attributes are on the <svg> element.
  3. Run node scripts/createTsIconComponents.mjs from root folder.
  4. Commit changes.

Edit svg file:

  1. Edit existing svg file.
  2. Run node scripts/createTsIconComponents.mjs from root folder.
  3. Commit changes.

Delete svg file:

  1. Delete svg file.
  2. Run node scripts/createTsIconComponents.mjs from root folder.
  3. Commit changes.

Rename or add new folders

  1. Do changes.
  2. Run node scripts/createTsIconComponents.mjs from root folder.
  3. Update files array in packages.json.

Keywords

FAQs

Package last updated on 06 Dec 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