lucide-angular 0.373.0 → 0.375.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 +22 -83
- package/aliases.d.ts +4 -0
- package/esm2020/aliases.mjs +7 -1
- package/esm2020/icons/activity.mjs +11 -3
- package/esm2020/icons/grid-2x2-check.mjs +23 -0
- package/esm2020/icons/grid-2x2-x.mjs +24 -0
- package/esm2020/icons/lucide-icons.mjs +3 -1
- package/esm2020/icons/printer.mjs +4 -4
- package/esm2020/src/icons/aliases.mjs +7 -1
- package/esm2020/src/icons/icons/activity.mjs +11 -3
- package/esm2020/src/icons/icons/grid-2x2-check.mjs +23 -0
- package/esm2020/src/icons/icons/grid-2x2-x.mjs +24 -0
- package/esm2020/src/icons/icons/lucide-icons.mjs +3 -1
- package/esm2020/src/icons/icons/printer.mjs +4 -4
- package/fesm2015/lucide-angular-src-icons.mjs +61 -6
- package/fesm2015/lucide-angular-src-icons.mjs.map +1 -1
- package/fesm2015/lucide-angular.mjs +61 -6
- package/fesm2015/lucide-angular.mjs.map +1 -1
- package/fesm2020/lucide-angular-src-icons.mjs +61 -6
- package/fesm2020/lucide-angular-src-icons.mjs.map +1 -1
- package/fesm2020/lucide-angular.mjs +61 -6
- package/fesm2020/lucide-angular.mjs.map +1 -1
- package/icons/activity.d.ts +1 -1
- package/icons/grid-2x2-check.d.ts +14 -0
- package/icons/grid-2x2-x.d.ts +14 -0
- package/icons/lucide-icons.d.ts +2 -0
- package/icons/printer.d.ts +1 -1
- package/package.json +1 -1
- package/src/icons/aliases.d.ts +4 -0
- package/src/icons/icons/activity.d.ts +1 -1
- package/src/icons/icons/grid-2x2-check.d.ts +14 -0
- package/src/icons/icons/grid-2x2-x.d.ts +14 -0
- package/src/icons/icons/lucide-icons.d.ts +2 -0
- package/src/icons/icons/printer.d.ts +1 -1
package/README.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://github.com/lucide-icons/lucide#gh-light-mode-only">
|
|
3
|
+
<img src="https://lucide.dev/package-logos/lucide-angular.svg#gh-light-mode-only" alt="Lucide Angular - Implementation of the lucide icon library for angular applications." width="540">
|
|
4
|
+
</a>
|
|
5
|
+
<a href="https://github.com/lucide-icons/lucide#gh-dark-mode-only">
|
|
6
|
+
<img src="https://lucide.dev/package-logos/dark/lucide-angular.svg#gh-dark-mode-only" alt="Lucide Angular - Implementation of the lucide icon library for angular applications." width="540">
|
|
7
|
+
</a>
|
|
8
|
+
</p>
|
|
9
|
+
|
|
1
10
|
# Lucide Angular
|
|
2
11
|
|
|
3
12
|
Implementation of the lucide icon library for angular applications.
|
|
@@ -16,96 +25,26 @@ or
|
|
|
16
25
|
npm install lucide-angular
|
|
17
26
|
```
|
|
18
27
|
|
|
19
|
-
##
|
|
20
|
-
|
|
21
|
-
### Step 1: Import `LucideAngularModule`
|
|
22
|
-
|
|
23
|
-
In any Angular module you wish to use Lucide icons in, you have to import `LucideAngularModule`, and pick any icons you wish to use:
|
|
24
|
-
|
|
25
|
-
```js
|
|
26
|
-
import { LucideAngularModule, File, Home, Menu, UserCheck } from 'lucide-angular';
|
|
27
|
-
|
|
28
|
-
@NgModule({
|
|
29
|
-
imports: [
|
|
30
|
-
LucideAngularModule.pick({File, Home, Menu, UserCheck})
|
|
31
|
-
]
|
|
32
|
-
})
|
|
33
|
-
export class AppModule { }
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
### Step 2: Use the icons in templates
|
|
37
|
-
|
|
38
|
-
Within your templates you may now use one of the following component tags to insert an icon:
|
|
39
|
-
|
|
40
|
-
```html
|
|
41
|
-
<lucide-angular name="file" class="my-icon"></lucide-angular>
|
|
42
|
-
<lucide-icon name="home" class="my-icon"></lucide-icon>
|
|
43
|
-
<i-lucide name="menu" class="my-icon"></i-lucide>
|
|
44
|
-
<span-lucide name="user-check" class="my-icon"></span-lucide>
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
### Props
|
|
48
|
-
|
|
49
|
-
You can pass additional props to adjust the icon appearance.
|
|
50
|
-
|
|
51
|
-
| name | type | default |
|
|
52
|
-
| ------------------ | --------- | ------------ |
|
|
53
|
-
| `size` | _number_ | 24 |
|
|
54
|
-
| `color` | _string_ | currentColor |
|
|
55
|
-
| `strokeWidth` | _number_ | 2 |
|
|
56
|
-
| `absoluteStrokeWidth` | _boolean_ | true |
|
|
57
|
-
|
|
58
|
-
```html
|
|
59
|
-
<i-lucide name="home" [size]="48" color="red" [strokeWidth]="1"></i-lucide>
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
### Global configuration
|
|
63
|
-
|
|
64
|
-
You can inject the `LucideIconConfig` service in your root component to globally configure the default property values as defined above.
|
|
65
|
-
|
|
66
|
-
### Styling using a custom CSS class
|
|
67
|
-
|
|
68
|
-
Any extra HTML attribute is ignored, but the `class` attribute
|
|
69
|
-
is passed onto the internal SVG image element and it can be used to style it:
|
|
70
|
-
|
|
71
|
-
```css
|
|
72
|
-
svg.my-icon {
|
|
73
|
-
width: 12px;
|
|
74
|
-
height: 12px;
|
|
75
|
-
stroke-width: 3;
|
|
76
|
-
}
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
## Injecting multiple icon providers
|
|
28
|
+
## Documentation
|
|
80
29
|
|
|
81
|
-
|
|
82
|
-
which accepts multiple providers of the interface `LucideIconsProviderInterface`
|
|
83
|
-
with the utility class `LucideIconsProvider` available for easier usage:
|
|
30
|
+
For full documentation, visit [lucide.dev](https://lucide.dev/guide/packages/lucide-angular)
|
|
84
31
|
|
|
85
|
-
|
|
86
|
-
import { LUCIDE_ICONS, LucideIconProvider } from 'lucide-angular';
|
|
87
|
-
import { MyIcon } from './icons/my-icon';
|
|
32
|
+
## Community
|
|
88
33
|
|
|
89
|
-
|
|
34
|
+
Join the [Discord server](https://discord.gg/EH6nSts) to chat with the maintainers and other users.
|
|
90
35
|
|
|
91
|
-
|
|
92
|
-
providers: [
|
|
93
|
-
{provide: LUCIDE_ICONS, multi: true, useValue: new LucideIconProvider(myIcons)},
|
|
94
|
-
]
|
|
95
|
-
})
|
|
96
|
-
export class AppModule { }
|
|
97
|
-
```
|
|
36
|
+
## License
|
|
98
37
|
|
|
99
|
-
|
|
38
|
+
Lucide is licensed under the ICS license. See [LICENSE](https://lucide.dev/license).
|
|
100
39
|
|
|
101
|
-
##
|
|
40
|
+
## Sponsors
|
|
102
41
|
|
|
103
|
-
|
|
42
|
+
<a href="https://vercel.com?utm_source=lucide&utm_campaign=oss">
|
|
43
|
+
<img src="https://lucide.dev/vercel.svg" alt="Powered by Vercel" width="200" />
|
|
44
|
+
</a>
|
|
104
45
|
|
|
105
|
-
|
|
106
|
-
import { icons } from 'lucide-angular';
|
|
46
|
+
<a href="https://www.digitalocean.com/?refcode=b0877a2caebd&utm_campaign=Referral_Invite&utm_medium=Referral_Program&utm_source=badge"><img src="https://lucide.dev/digitalocean.svg" width="200" alt="DigitalOcean Referral Badge" /></a>
|
|
107
47
|
|
|
108
|
-
|
|
48
|
+
### Awesome backer 🍺
|
|
109
49
|
|
|
110
|
-
|
|
111
|
-
```
|
|
50
|
+
<a href="https://www.scipress.io?utm_source=lucide"><img src="https://lucide.dev/sponsors/scipress.svg" width="180" alt="Scipress sponsor badge" /></a>
|
package/aliases.d.ts
CHANGED
|
@@ -1202,6 +1202,10 @@ export { default as GraduationCapIcon } from './icons/graduation-cap';
|
|
|
1202
1202
|
export { default as LucideGraduationCap } from './icons/graduation-cap';
|
|
1203
1203
|
export { default as GrapeIcon } from './icons/grape';
|
|
1204
1204
|
export { default as LucideGrape } from './icons/grape';
|
|
1205
|
+
export { default as Grid2x2CheckIcon } from './icons/grid-2x2-check';
|
|
1206
|
+
export { default as LucideGrid2x2Check } from './icons/grid-2x2-check';
|
|
1207
|
+
export { default as Grid2x2XIcon } from './icons/grid-2x2-x';
|
|
1208
|
+
export { default as LucideGrid2x2X } from './icons/grid-2x2-x';
|
|
1205
1209
|
export { default as GripHorizontalIcon } from './icons/grip-horizontal';
|
|
1206
1210
|
export { default as LucideGripHorizontal } from './icons/grip-horizontal';
|
|
1207
1211
|
export { default as GripVerticalIcon } from './icons/grip-vertical';
|