stera-icons 7.0.3 → 7.0.4
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 +16 -2
- package/package.json +5 -80640
package/README.md
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
# Stera Icons
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/stera-icons)
|
|
4
|
-
[](https://bundlephobia.com/package/stera-icons)
|
|
5
4
|
[](https://opensource.org/licenses/MIT)
|
|
6
5
|
|
|
7
|
-
A modern, lightweight React icon library with
|
|
6
|
+
A modern, lightweight React icon library with 700+ icons. All icons available in 6 variants with triple-aliased exports for maximum flexibility.
|
|
8
7
|
|
|
9
8
|
## Installation
|
|
10
9
|
|
|
@@ -66,6 +65,21 @@ import { Search } from 'stera-icons';
|
|
|
66
65
|
<Search weight="fill" duotone /> {/* Fill + Duotone */}
|
|
67
66
|
```
|
|
68
67
|
|
|
68
|
+
### Subpath Imports
|
|
69
|
+
|
|
70
|
+
For even better tree-shaking and smaller bundles, import directly from icon paths:
|
|
71
|
+
|
|
72
|
+
```tsx
|
|
73
|
+
// Import individual icons
|
|
74
|
+
import { Search } from 'stera-icons/icons/Search';
|
|
75
|
+
import { SearchBold } from 'stera-icons/icons/SearchBold';
|
|
76
|
+
import { SiHome } from 'stera-icons/icons/SiHome';
|
|
77
|
+
|
|
78
|
+
<Search size={24} />
|
|
79
|
+
<SearchBold size={24} />
|
|
80
|
+
<SiHome size={24} />
|
|
81
|
+
```
|
|
82
|
+
|
|
69
83
|
## Props
|
|
70
84
|
|
|
71
85
|
| Prop | Type | Default | Description |
|