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

ngx-icons

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-icons

A collection of icon libraries to use in your angular apps

  • 0.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

ngx-icons

A collection of icons libraries to use in your Angular apps

Install

$ npm install --save  ngx-icons

Supported Libraries

The following icon libraries are supported

  • Font Awesome
  • Themify Icons
  • Weather Icons

Use Font Awesome

Install

$ npm install --save  font-awesome

Import the module

//...
import { FontAwesomeModule } from 'ngx-icons';
@NgModule({
  //...
  imports: [
    //...
    FontAwesomeModule
  ],
  //...
})
export class AppModule { }

If you're using Angular CLI, add CSS to styles inside the .angular-cli.json

"styles": [
    "styles.css",
    "../node_modules/font-awesome/css/font-awesome.css"
],

Usage and Options

To use the component use selector: <fa></fa>.

NameTypeOptionsOptional
nameStringF-A IconsNo
sizeStringlg, 2x, 3x, 4x, 5xYes
fixedBooleantrue / falseYes
animationStringspin / pulseYes
rotateNumber / String90 / 180 / 270 / horizontal / verticalYes
inverseBooleantrue / falseYes
qouteStringleft / rightYes
pullStringleft / rightYes

Use Themify Icons

Install

Download icons from Themify the add the ‘themify-icons.css’ file and ‘fonts’ to folder.

Import the module

//...
import { ThemifyIcons } from 'ngx-icons';
@NgModule({
  //...
  imports: [
    //...
    ThemifyIcons
  ],
  //...
})
export class AppModule { }

If you're using Angular CLI, add CSS to styles inside the .angular-cli.json

"styles": [
    "styles.css",
    "../path/to/themify-icons.css"
],

Usage and Options

To use the component use selector: <ti></ti>.

NameTypeOptionsOptional
nameStringThemnify IconsNo

Use Weather Icons

Install

$ npm install --save  git+https://github.com/erikflowers/weather-icons.git

Note that npm install --save weather-icons installs legacy version 1.5

Import the module

//...
import { WeatherIconsModule } from 'ngx-icons';
@NgModule({
  //...
  imports: [
    //...
    WeatherIcons
  ],
  //...
})
export class AppModule { }

If you're using Angular CLI, add CSS to styles inside the .angular-cli.json.

"styles": [
    "styles.css",
    "../node_modules/weather-icons/css/weather-icons.css",
    "../node_modules/weather-icons/css/weather-icons-wind.css"
],

Note that if you do not require the wind direction icons you can drop weather-icons-wind.css.

Usage and Options

To use the component use selector: <wi></wi>.

NameTypeOptionsOptional
nameStringW-I IconsNo
fixedBooleantrue / falseYes
rotateNumber90 / 180 / 270Yes
flipStringhorizontal / verticalYes
directionStringtowards / fromYes, only for wind default towards
degreeNumber0-360Yes, only for wind default 0
cardinalStringn - nnwYes, only for wind default n
beaufortNumber0-11Yes, only for wind-beaufort default 0
timeNumber1-12Yes, only for time default 1

Examples:

  • <wi name="wind" direction="from" degree="78"></wi>
  • <wi name="sleet" fixed="true"></wi>
  • <wi name="time" time="7"></wi>
  • <wi name="raindrop" flip="vertical"></wi>
  • <wi name="fire" rotate="90"></wi>

Keywords

FAQs

Package last updated on 22 Jan 2018

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