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

@tailng-ui/icons

v0.23.0

Published

Angular icon components for Tailng

Downloads

403

Readme

@tailng-ui/icons

PROD - Release & Deploy (Tailng)

NPM Version License: MIT

Angular icon components built on top of @ng-icons/core with Tailwind CSS support.


Overview

@tailng-ui/icons provides a lightweight, tree-shakable icon system for modern Angular applications.
Icons are rendered as SVG and styled via currentColor, making them fully compatible with Tailwind CSS and TailNG theming.


Installation

npm install @tailng-ui/icons @ng-icons/core
# or
yarn add @tailng-ui/icons @ng-icons/core

Install an icon set of your choice. For example, Bootstrap Icons:

npm install @ng-icons/bootstrap-icons

Peer Dependencies

  • @angular/core: ^21.0.0
  • @angular/common: ^21.0.0
  • @ng-icons/core: ^30.0.0

@ng-icons/core is a peer dependency to avoid bundling the icon engine and to keep bundles small.


Features

  • Standalone Angular component
  • Signal-based API (Angular signals)
  • Tree-shakable icon definitions
  • currentColor-based SVG icons
  • Flexible sizing (number or string)
  • Built-in accessibility support
  • No CSS or styling opinions

Usage

Basic Usage

import { Component } from '@angular/core';
import { TngIcon } from '@tailng-ui/icons';
import { provideIcons } from '@ng-icons/core';
import { bootstrapCheckCircle } from '@ng-icons/bootstrap-icons';

@Component({
  selector: 'app-example',
  standalone: true,
  imports: [TngIcon],
  providers: [
    provideIcons({
      bootstrapCheckCircle,
    }),
  ],
  template: `
    <tng-icon name="bootstrapCheckCircle" />
  `,
})
export class ExampleComponent {}

With Size

<!-- Number = pixels -->
<tng-icon name="bootstrapCheckCircle" [size]="24" />

<!-- String = CSS units -->
<tng-icon name="bootstrapCheckCircle" size="1.5rem" />
<tng-icon name="bootstrapCheckCircle" size="2em" />

With Tailwind / TailNG Classes (Slot)

Icons use currentColor, so they inherit text color. Use the slot input for micro styling:

<!-- Token-safe (recommended) -->
<tng-icon name="bootstrapCheckCircle" [slot]="{ icon: 'text-fg' }" />

<!-- Any Tailwind color also works -->
<tng-icon name="bootstrapCheckCircle" [slot]="{ icon: 'text-green-500' }" />

Accessibility

<!-- Decorative icon (default) -->
<tng-icon name="bootstrapCheckCircle" />

<!-- Semantic icon -->
<tng-icon
  name="bootstrapCheckCircle"
  [decorative]="false"
  ariaLabel="Success"
/>

API Reference

TngIcon

Inputs

  • name (required): string
    Icon name from the @ng-icons registry

  • size: number | string
    Number = pixels, string = CSS unit
    Default: '1em'

  • slot: TngSlotMap<TngIconSlot>
    Slot-based micro styling. Accepts icon key for the ng-icon host element.

  • decorative: boolean
    If true, sets aria-hidden
    Default: true

  • ariaLabel: string
    Required when decorative is false


Supported Icon Sets

Works with all icon packs supported by @ng-icons/core, including:

  • Bootstrap Icons
  • Heroicons
  • Material Icons
  • Font Awesome
  • and more

See the official docs:
https://ng-icons.github.io/ng-icons/


Related Packages

  • @tailng-ui/ui – UI components
  • @tailng-ui/cdk – Component utilities
  • @tailng-ui/theme – Tailwind preset & tokens

License

MIT