🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more
Socket
Book a DemoInstallSign in
Socket

@ndla/icons

Package Overview
Dependencies
Maintainers
6
Versions
238
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

latest
Source
npmnpm
Version
8.0.70-alpha.0
Version published
Weekly downloads
3.8K
62.63%
Maintainers
6
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:

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

Edit svg file:

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

Delete svg file:

  • Delete svg file.
  • Run node scripts/createTsIconComponents.mjs from root folder.
  • Commit changes.

Rename or add new folders

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

Keywords

ndla

FAQs

Package last updated on 27 Oct 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