@ng-icons/feather-icons 12.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,66 @@
1
+ # Ng Icons
2
+
3
+ The all in one icon library for Angular. This allows you to use icons from multiple icon sets with a single icon component.
4
+
5
+ Currently we support the following libraries:
6
+
7
+ - [Heroicons](https://heroicons.com/)
8
+ - [Feather Icons](https://feathericons.com/)
9
+ - [Jam Icons](https://jam-icons.com/)
10
+ - [Octicons](https://github.com/primer/octicons)
11
+ - [Radix UI Icons](https://icons.modulz.app/)
12
+
13
+ Got suggestions for additional iconsets? Create an issue and we can consider adding them!
14
+
15
+ ## Installation
16
+
17
+ Ng Icons is comprised of multiple packages:
18
+
19
+ - `@ng-icons/core` - This contains the icon component and the `NgIconsModule` that is used to register the icons you want to include in your application.
20
+ - `@ng-icons/heroicons` - The Heroicons iconset including both outline and solid variants.
21
+ - `@ng-icons/feather-icons` - The Feather Icons iconset.
22
+ - `@ng-icons/jam-icons` - The Jam Icons iconset.
23
+ - `@ng-icons/octicons` - The Octicons iconset.
24
+ - `@ng-icons/radix-icons` - The Radix UI iconset.
25
+
26
+ You must install the `@ng-icons/core` package, however you only need to install the iconset libraries you intend to use.
27
+
28
+ E.g:
29
+
30
+ ```bash
31
+ npm i @ng-icons/core @ng-icons/heroicons ...
32
+ ```
33
+
34
+ or
35
+
36
+ ```bash
37
+ yarn add @ng-icons/core @ng-icons/heroicons ...
38
+ ```
39
+
40
+ ## Usage
41
+
42
+ Import the `NgIconsModule` and register the icons you wish to use:
43
+
44
+ ```ts
45
+ import { NgIconsModule } from '@ng-icons/core';
46
+ import { FeatherAirplay } from '@ng-icons/feather-icons';
47
+ import { HeroUsers } from '@ng-icons/heroicons';
48
+
49
+ @NgModule({
50
+ imports: [
51
+ BrowserModule,
52
+ NgIconsModule.withIcons({ FeatherAirplay, HeroUsers }),
53
+ ],
54
+ })
55
+ export class AppModule {}
56
+ ```
57
+
58
+ You can register icons in multiple modules, this allows icons to be lazy loaded in child modules.
59
+
60
+ You can then use the icon in your templates:
61
+
62
+ ```html
63
+ <ng-icon name="feather-airplay"></ng-icon>
64
+ ```
65
+
66
+ Additionally there is a `size` input which allows you to specify the size of the icon as a CSS size value. By default icons are set to `1em` which will make them the same size as the font set on it's container.