npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

ngx-iconic

v19.1.9

Published

A standalone Angular icon component like mat-icon

Readme

NgxIconic

npm version License: MIT

A standalone Angular component for easily implementing Material Design icons in your Angular applications. NgxIconic provides a flexible and performant way to use Google's Material Icons with additional features like RTL support, size variants, and custom configurations.

Features

  • 🚀 Standalone component architecture
  • 🎨 Full Material Design Icons support
  • 🔄 Automatic RTL flipping support
  • 📏 Predefined size variants
  • ⚙️ Customizable configuration
  • 🎯 Type-safe icon names
  • 🌈 Custom color support

Installation

npm install ngx-iconic

Basic Usage

  1. Import the NgxIconicModule in your app.module.ts:
import { NgxIconicModule } from 'ngx-iconic';

@NgModule({
  imports: [
    NgxIconicModule.forRoot({
      // Optional configuration
      flipInRtl: true,
      iconBasePath: 'assets/icons'
    })
  ]
})
export class AppModule { }
  1. Use the component in your templates:
<iconic icon="home"></iconic>
<iconic icon="search" iconStyle="materialIconsOutlined"></iconic>
<iconic icon="favorite" color="#ff0000"></iconic>

Standalone Usage

If you're using standalone components, you can import NgxIconComponent directly:

import { NgxIconComponent } from 'ngx-iconic';

@Component({
  // ...
  imports: [NgxIconComponent]
})

Configuration

Global Configuration

You can configure NgxIconic globally using the forRoot() method:

NgxIconicModule.forRoot({
  defaultIcon: 'all_out',
  iconBasePath: 'assets/icons',
  flipInRtl: true
});

Or using the provide function:

import { provideNgxIconic } from 'ngx-iconic';

@NgModule({
  providers: [
    provideNgxIconic({
      defaultIcon: 'home',
      flipInRtl: true
    })
  ]
})

Configuration Options

| Option | Type | Default | Description | |--------|------|---------|-------------| | defaultIcon | string | 'all_out' | Fallback icon when none is specified | | iconBasePath | string | 'assets/icons' | Base path for icon assets | | flipInRtl | boolean | true | Whether icons should flip in RTL mode |

Component API

Inputs

| Input | Type | Default | Description | |-------|------|---------|-------------| | icon | IconNames | undefined | Name of the Material icon | | type | IconTypes | 'materialIcons' | Icon type/style variant | | flip | boolean | undefined | Manually control icon flipping | | color | string | 'currentColor' | Icon color (CSS color value) |

Icon Types

type IconTypes = 
  | 'materialIcons'
  | 'materialIconsOutlined'
  | 'materialIconsRound'
  | 'materialIconsSharp'
  | 'materialIconsTwoTone'

Size Classes

NgxIconic provides predefined size classes that you can use:

<iconic icon="home" class="text-xs"></iconic>  <!-- 12px -->
<iconic icon="home" class="text-sm"></iconic>  <!-- 14px -->
<iconic icon="home" class="text-base"></iconic> <!-- 16px -->
<iconic icon="home" class="text-lg"></iconic>  <!-- 18px -->
<iconic icon="home" class="text-xl"></iconic>  <!-- 20px -->
<iconic icon="home" class="text-2xl"></iconic> <!-- 24px -->
<!-- ... up to text-9xl (128px) -->

RTL Support

NgxIconic automatically handles RTL (Right-to-Left) scenarios:

  1. Automatic flipping based on document or parent direction
  2. Manual control using the flip input
  3. Global RTL behavior configuration
<!-- Will automatically flip in RTL context if flipInRtl is true -->
<iconic icon="arrow_forward"></iconic>

<!-- Manual control -->
<iconic icon="arrow_forward" [flip]="true"></iconic>

Category Organization

Icons are organized into categories for better organization and type safety:

  • Action
  • Alert
  • AV
  • Communication
  • Content
  • Device
  • Editor
  • File
  • Hardware
  • Home
  • Image
  • Maps
  • Navigation
  • Notification
  • Places
  • Social
  • Toggle

Browser Support

NgxIconic supports all modern browsers:

  • Chrome (latest)
  • Firefox (latest)
  • Safari (latest)
  • Edge (latest)

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.


This README provides comprehensive documentation covering installation, usage, configuration, API reference, and features. Feel free to adjust any sections based on your specific needs or additional features.

Let me know if you'd like me to expand on any particular section or add more examples!