npm.io
0.1.1 • Published 5d ago

@softicons/angular

Licence
MIT
Version
0.1.1
Deps
1
Size
2.6 MB
Vulns
0
Weekly
91

@softicons/angular

npm downloads license

Standalone, tree-shakeable Angular components for the Softicons icon set — 24×24, mono-line, currentColor. Requires Angular 17+.

Install

npm i @softicons/angular
# or
pnpm add @softicons/angular
# or
yarn add @softicons/angular
import { Component } from "@angular/core";
import { ArrowRightIconComponent } from "@softicons/angular";

@Component({
  standalone: true,
  imports: [ArrowRightIconComponent],
  template: `<arrow-right-icon [size]="24" [strokeWidth]="1.5" aria-label="Next" />`,
})
export class DemoComponent {}

Use (NgModule)

import { SofticonsModule } from "@softicons/angular";

@NgModule({ imports: [SofticonsModule] })
export class AppModule {}
Input Type Default
size number | string 24
color string currentColor
strokeWidth number | string 1.5
aria-label string — (adds role="img", else aria-hidden)

MIT Softicons

Keywords