@whydrf/nava-icon-angular 1.0.2 → 1.0.3
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 +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -68,7 +68,7 @@ Your bundler (the Angular CLI uses esbuild under the hood) traces this import an
|
|
|
68
68
|
In contrast, this pattern imports everything:
|
|
69
69
|
|
|
70
70
|
```typescript
|
|
71
|
-
//
|
|
71
|
+
// ✗ Don't do this in production — bundles all 950+ icons
|
|
72
72
|
import * as Icons from '@whydrf/nava-icon-angular'
|
|
73
73
|
```
|
|
74
74
|
|
|
@@ -234,11 +234,11 @@ The package includes full TypeScript definitions. You get autocompletion for ico
|
|
|
234
234
|
import type { IconName, IconMode } from '@whydrf/nava-icon-angular'
|
|
235
235
|
|
|
236
236
|
// IconName gives you autocompletion for all 950+ icon names
|
|
237
|
-
const icon: IconName = 'home' //
|
|
238
|
-
const bad: IconName = 'invalid' //
|
|
237
|
+
const icon: IconName = 'home' // ✓ valid
|
|
238
|
+
const bad: IconName = 'invalid' // ✗ compile error
|
|
239
239
|
|
|
240
240
|
// IconMode constrains to 'regular' | 'filled'
|
|
241
|
-
const mode: IconMode = 'filled' //
|
|
241
|
+
const mode: IconMode = 'filled' // ✓
|
|
242
242
|
```
|
|
243
243
|
|
|
244
244
|
## Inputs Reference
|
|
@@ -266,7 +266,7 @@ All standard HTML attributes (`class`, `style`, `(click)`, `(mouseenter)`, `[att
|
|
|
266
266
|
| **Weather** | `sun`, `moon`, `cloud`, `droplet`, `wind`, `umbrella` |
|
|
267
267
|
| **Shopping** | `cart`, `credit-card`, `bag`, `tag`, `badge`, `diamond` |
|
|
268
268
|
|
|
269
|
-
Browse all 950+ icons with live preview at [
|
|
269
|
+
Browse all 950+ icons with live preview at **[https://vahidghadiri.github.io/Nava-icon/](https://vahidghadiri.github.io/Nava-icon/)**.
|
|
270
270
|
|
|
271
271
|
## When to Use What
|
|
272
272
|
|