12.0.0 • Published 3 years ago

ng-heroicons v12.0.0

Weekly downloads
59
License
MIT
Repository
github
Last release
3 years ago

Ng Heroicons

CI

A set of free MIT-licensed high-quality SVG icons for you to use in your web projects.

The SVG Icons created by: https://github.com/refactoringui/heroicons

Preview and search at Heroicons.dev (Made by @codex-zaydek)

Installing Library

npm i ng-heroicons

or

yarn add ng-heroicons

Using Icons

Import HeroIconsModule from 'ng-heroicons', along with any icons you want to include. To include icons add them to the withIcons function call, e.g.:

import { annotation, annotationSolid, HeroIconsModule } from 'ng-heroicons';

@NgModule({
  declarations: [
  ],
  imports: [
    HeroIconsModule.withIcons({ annotation, annotationSolid })
  ],
})
export class AppModule {
}

You can import different icons in each lazy loaded module to reduce the icons loaded in each bundle.

To insert an icon use the following HTML:

<hero-icon name="annotation"></hero-icon>
<hero-icon name="annotation-solid"></hero-icon>

Icon names are in kebab-case format. If an icon doesn't appear it is likely you forgot to import it.

By default, the size of the icon uses the font size and text color. There is a size input which allows you to define any CSS value for the icon size.

Outline style

24x24 icons drawn with a stroke.

npm.io

Solid style

Smaller 20x20 icons drawn with fills.

npm.io

12.0.0

3 years ago

11.0.0

3 years ago

10.0.4

3 years ago

10.0.3

4 years ago

10.0.2

4 years ago

10.0.1

4 years ago

1.0.0

4 years ago