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

dgx-icons-svg

v0.0.7

Published

![Angular](https://img.shields.io/badge/Angular-DD0031?style=for-the-badge&logo=angular&logoColor=white) ![TailwindCSS](https://img.shields.io/badge/Tailwind_CSS-065F46?style=for-the-badge&logo=tailwind-css&logoColor=white) ![SVG](https://img.shields.io/b

Readme

dgx-icons-svg

Angular TailwindCSS SVG

Una librería de componentes Angular (soportado desde Angular 19+) que proporciona iconos SVG interactivos para tu aplicación.

Instalación

Puedes instalar la librería usando npm:

npm install dgx-icons-svg

Uso

Importa el módulo DgxIconsSvgModule en tu módulo de Angular:

import { DgxIconsSvgModule } from 'dgx-icons-svg';

@NgModule({
  imports: [
    // ... otras importaciones
    DgxIconsSvgModule
  ],
  // ...
})
export class YourAppModule { }

Luego, puedes usar los componentes de icono en tus plantillas. Los iconos son interactivos y pueden ser estilizados usando clases CSS. Puedes pasar una clase CSS usando la vinculación de propiedades [class]. Esto es especialmente útil con frameworks CSS como Tailwind CSS:

<icon-account-balance-svg></icon-account-balance-svg>
<icon-add-notes-svg></icon-add-notes-svg>
<icon-autorenew-svg></icon-autorenew-svg>
<icon-badge-id-svg></icon-badge-id-svg>
<icon-calendar-month-svg></icon-month-svg>
<icon-calendar-today-svg></icon-today-svg>
<icon-cash-register-svg></icon-register-svg>
<icon-coins-svg></icon-coins-svg>
<icon-credit-card-svg></icon-card-svg>
<icon-data-alert-svg></icon-alert-svg>
<icon-download-svg></icon-download-svg>
<icon-event-svg></icon-event-svg>
<icon-export-notes-svg></icon-notes-svg>
<icon-eye-tracking-svg></icon-tracking-svg>
<icon-grid-svg></icon-grid-svg>
<icon-location-svg></icon-location-svg>
<icon-paid-svg></icon-paid-svg>
<icon-process-svg></icon-process-svg>
<icon-release-alert-svg></icon-alert-svg>
<icon-search-svg></icon-search-svg>
<icon-sell-svg></icon-sell-svg>
<icon-send-svg></icon-send-svg>
<icon-store-svg></icon-store-svg>
<icon-upload-file-svg></icon-file-svg>

Ejemplo de uso en un componente Angular 19+:

En tu componente (.ts):

import { ChangeDetectionStrategy, Component } from '@angular/core';
import { PaidSvg, AccountBalanceSvg, CreditCardSvg } from 'dgx-icons-svg';

@Component({
  selector: 'consiglia-details-page',
  imports: [PaidSvg, AccountBalanceSvg, CreditCardSvg],
  templateUrl: './details-page.component.html',
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class DetailsPageComponent { }

En tu plantilla (.html):

<icon-paid-svg class="w-4 h-4 text-base-content/75"></icon-paid-svg>
<icon-credit-card-svg class="text-base-content/75" />
<icon-account-balance-svg class="text-base-content/75" />

Ejemplo de interactividad con clases CSS (incluyendo Tailwind CSS) y vinculación de propiedades:

En tu componente (.ts):

isActive: boolean = false;

toggleActive() {
  this.isActive = !this.isActive;
}

En tu plantilla (.html):

<icon-grid-svg [class]="isActive ? 'text-blue-600 cursor-pointer' : ''" (click)="toggleActive()"></icon-grid-svg>

En tu archivo de estilos (.css o .scss) si no usas Tailwind, o simplemente usando clases de Tailwind directamente en la plantilla si lo usas:

.active-icon {
  fill: blue; /* Cambia el color cuando está activo */
  cursor: pointer; /* Indica que es interactivo */
}

Iconos disponibles

Aquí tienes una tabla con los iconos disponibles en esta librería y sus vistas previas:

| Nombre del Icono | Vista Previa | |--------------------------|--------------| | account-balance | account-balance | | add-notes | add-notes | | autorenew | autorenew | | badge-id | badge-id | | calendar-month | calendar-month | | calendar-today | calendar-today | | cash-register | cash-register | | coins | coins | | credit-card | credit-card | | data-alert | data-alert | | dataphone | dataphone | | delivery | delivery | | download | download | | event | event | | export-notes | export-notes | | eye-tracking | eye-tracking | | grid | grid | | location | location | | options | options | | paid | paid | | price-check | price-check | | process | process | | release-alert | release-alert | | search | search | | sell | sell | | send | send | | store | store | | upload-file | upload-file |

Construcción y Publicación

Para construir la librería, ejecuta:

ng build dgx-icons-svg

Los artefactos de construcción se encontrarán en el directorio dist/.

Para publicar la librería en npm, navega al directorio dist/dgx-icons-svg y ejecuta:

cd dist/dgx-icons-svg
npm publish

Pruebas

Para ejecutar las pruebas unitarias:

ng test