Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@brightlayer-ui/icons-svg

etn-ccis14.5kBSD-3-Clause1.15.0TypeScript support: included

SVG icons for Eaton applications

icons, brightlayer-ui, eaton, svg

readme

Brightlayer UI SVG Icons

Build

This is a library of SVG Icons for use in Brightlayer UI applications.

Installation

To install the Brightlayer UI SVG Icons from NPM as a dependency for your project, you can run one of the following commands in your project root:

npm install --save @brightlayer-ui/icons-svg
or
yarn add @brightlayer-ui/icons-svg

Angular

The method described below for Angular requires you to install the Angular CDK and Angular Material:

cd projectname
yarn add @angular/cdk @angular/material

and also include the following modules:

// app.module.ts
import {MatIconModule} from '@angular/material/icon';
import {HttpClientModule} from '@angular/common/http';
...
imports:[
  MatIconModule,
  HttpClientModule
]

Usage

Angular

The simplest way to use these SVGs in Angular is to register them with the matIconRegistry so they can be used with the <mat-icon> tag. You can register icons individually, or as the entire Brightlayer UI set:

import { Component } from "@angular/core";
import { MatIconRegistry } from "@angular/material/icon";
import { DomSanitizer } from "@angular/platform-browser";

declare var require: any;
const icon = require("@brightlayer-ui/icons-svg/breaker.svg").default; // individual icon
const iconSet = require("@brightlayer-ui/icons-svg/icons.svg").default; // full set

Then, in your constructor, register the icon or the icon set. It will then be available for use as a <mat-icon>.

Individual Icon

// app.component.ts
export class AppComponent {
  constructor(
    private matIconRegistry: MatIconRegistry,
    private domSanitizer: DomSanitizer
  ) {
    this.matIconRegistry.addSvgIcon(
      "breaker",
      this.domSanitizer.bypassSecurityTrustResourceUrl(icon)
    );
  }
}
// app.component.html
<mat-icon svgIcon="breaker"></mat-icon>

Entire Icon Set

// app.component.ts
export class AppComponent {
  constructor(
    private matIconRegistry: MatIconRegistry,
    private domSanitizer: DomSanitizer
  ) {
    this.matIconRegistry.addSvgIconSetInNamespace('blui-icons', this.domSanitizer.bypassSecurityTrustResourceUrl(iconSet));
  }
}
// app.component.ts
<mat-icon svgIcon="blui-icons:bearing"></mat-icon>

Applying Different Colors

To change the color of the icon you are using, simply set the CSS color property. This property is inheritable, so if the property is not set on your icon, it will be inherited from the parent container.

<mat-icon svgIcon="blui-icons:bearing" style="color: red"></mat-icon>

React

import icon from '@brightlayer-ui/icons-svg/ICON_NAME.svg';
...
<img src={icon}/>

NOTE: SVG icons used in this manner will appear black. The fill color cannot be changed because the SVGs are not inline. If you want to color the icons, you will want to use the @brightlayer-ui/icons-mui or our icon font.

NOTE: If you will be using many of these icons in your application, we recommend you use @brightlayer-ui/icons-mui or our icon font to simplify usage. This library makes more sense if you just need one or two icons or if you want to reduce the size of your bundle.

React-Native

React Native does not have built in support for SVG images. However, there are libraries available that will make them usable in your application. We recommend using react-native-svg-transformer in conjuction with react-native-svg. These will allow you to include Brightlayer UI SVG icons by importing and using them as normal components:

import Leaf from "@brightlayer-ui/icons-svg/leaf.svg";
...
<Leaf width={50} height={50} fill={'green'} />

Available SVG Icons

See the Iconography on brightlayer-ui.github.io for a list of currently available icons.

changelog

Changelog

v1.15.0 (May 16, 2024)

Added

  • New family sprites, including all Material icons and BLUI icons.

v1.14.0 (February 16, 2024)

Added

  • New icons: Ethernet Port, Skillet, Skillet Cooktop, Cooking, Stockpot, Stove, Wind Turbine, Water Energy, IOT Scene.

v1.13.1 (July 7, 2023)

Changed

  • Reassigned 3 icons (Silo, Building, Garage Closed) to the family "maps".

v1.13.0 (June 30, 2023)

Added

  • New icons: Cloud Done, Cloud Off Filled, Utility Disabled, File CSV, Breaker Closed, Battery Disabled, EV Plug IEC 61851 GB/T, Notification Active Outline, Battery Disabled Alt, Sitemap Outline, Warehouse Alt, Floor Plan, Garage Closed.

v1.12.0 (Feb 28, 2023)

Added

  • 33 new icons for PPE, tools, and companies.

v1.11.0 (Aug 10, 2022)

Added

  • New icon: ChampVMVL.

v1.10.0 (July 13, 2022)

Added

  • New icons: Outlet C19, Outlet C14, Outlet C39, Outlet Alt, Outlet C19 Off, Outlet C14 Off, Outlet C39 Off and Outlet Alt Off.

v1.9.0 (March 29, 2022)

Added

  • New icons: API, API Settings, Paywall, Protocol, and Device with Keypad.

v1.8.1 (December 17, 2021)

Fixed

  • Icon Font clipping issue for cybersecurity two-tone icon #174

v1.8.0 (December 9, 2021)

Added

  • New electric vehicle-related icons (28): EV Plug Domestic A, EV Plug Domestic B, EV Plug Domestic C, EV Plug Domestic D, EV Plug Domestic E, EV Plug Domestic F, EV Plug Domestic G, EV Plug Domestic H, EV Plug Domestic I, EV Plug Domestic J, EV Plug Domestic K, EV Plug Domestic L, EV Plug IEC 60309-2 Single 16, EV Plug IEC 60309-2 Three 16, EV Plug IEC 60309-2 Three 32, EV Plug IEC 60309-2 Three 64, EV Plug IEC 62196 T1, EV Plug IEC 62196 T1 Combo, EV Plug IEC 62196 T2, EV Plug IEC 62196 T2 Combo, EV Plug IEC 62196 T3A, EV Plug IEC 62196 T3C, EV Plug Tesla R, EV Plug Tesla S, EV Plug CHAdeMO, Pantograph Bottom Up, Pantograph Top Down, Hubject.
  • Other new icons (10): Power Redundancy, Power Redundancy Off, Video Alert, Video Alert Outline, Video Streaming, Video Streaming Outline, Incident Maintenance, Help Desk Log, Notification Log, Panel Log.

Fixed

  • Icon clipping that results in undesired outcomes for icon fonts (#171).

v1.7.1 (November 3, 2021)

Changed

  • Changed package namespace from @pxblue to @brightlayer-ui.

Package Migration Notice

Previous versions listed after this indicator refer to our deprecated @pxblue packages.


v1.7.1 (October 27, 2021)

Fixed

  • Icon clipping that results in undesired outcomes: VMMS, File PDF, EV Plug CCS Combo, EV Plug CHAdeMO, EV Plug Type 1

v1.7.0 (October 1, 2021)

Added

  • New icons: EV Plug Type 1, EV Plug Type 2, EV Plug CCS Combo, EV Plug CHAdeMO, RFID

v1.6.0 (August 25, 2021)

Added

  • New icons: Output Flow, Input Flow, Smoke Detector, File PDF, File DOC, Load Factor.

Changed

  • Modified the style of Air Filter, Power Factor.

v1.5.0 (August 17, 2021)

Added

  • Device- and channel-related icons: ATS, ATS Alt, Distribution Box, Distribution Box Outline, Drive, Meter Face, Motor Alt, Motor Controller Outline, Motor Controller, Motor Outline, Motor Starter, Motor, Relay, Sensor Alt, Sensor Device Alt, Sensor Device, Sensor, Device Info, Trip Curve Alt, Trip Curve, Trip Unit, UPS Outline, UPS, Configuration, Device Configuration, Control, Diagnostic Alt, Diagnostic, Apparent Energy, Apparent Power, Bypass Alt, Bypass, Flood, Frequency, Harmonics, Phase Angle, Power Factor, Reactive Energy, Reactive Power, Real Energy, Real Power, Sequence, Air Conditioner, Fan Circled.

v1.4.0 (July 14, 2021)

Changed

  • Switched from deprecated icon-font-generator package to fantasticon (#138)

Fixed

  • Crooked icon paths in Current AC, Current DC, Grade A, Line to Neutral, Power DC, power AC, Power Apparent AC, Voltage AC, Voltage DC.

v1.3.0 (June 23, 2021)

Added

  • Device icons: Battery Large, Battery Large Outline, Battery Large Reset, Battery Large Reset Outline and Battery Large Showing Terminals
  • General icons: Technician

v1.2.0 (March 25, 2021)

Added

  • Brand logos: Amazon, Amazon Alexa, Apple Logo and Google.
  • Industrial icons: Pressure and Pressure Alt.
  • System icon: Face ID.

v1.1.2 (January 11, 2021)

Fixed

  • Mildly crooked vector path in Department and Departments icons
  • Wrong ratio in the Eaton logos

v1.1.1 (December 10, 2020)

Fixed

  • Missing icon metadata in the index file

v1.1.0 (September 30, 2020)

Added

  • Three Eaton logo variants.
  • Lighting icons for Dimmer, Light Switch, Outlet, Light Bulb, and Ceiling Light.
  • General icons for Account Settings, Lock Reset, and Internet, Glass Divider.
  • Electrical icons for Capacitor Symbol, Diode, Switchgear, Transformer, Current AC, Current DC, Power AC, Power DC, Power Apparent AC, Voltage AC, Voltage DC, AC, DC, Line to Line, and Line to Neutral.
  • PPE icons for Hearing Protection, Safety Boot, Safety Glasses, and Distance Apart.
  • Device icons for AMI Gateway, IPPE Vibrate, IPPE Vibrate Off, IPPE Vibrate Outlined, and Device Activating.

v1.0.26 (July 2, 2020)

Changed

  • Renamed road_variant to road_alt for consistency

Fixed

  • Fixed a few alignment and color issues

v1.0.24 (September 27, 2019)

Added

  • New icons for Department, Departments, Building, Factory, Map Markers, Piggy Bank