svg-dynamic-icon 1.0.0 → 1.0.1
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 +7 -16
- package/package.json +1 -1
package/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# svg-dynamic-icon
|
2
2
|
|
3
|
-
A lightweight React component for rendering **custom-made SVG icons** with **TailwindCSS** support.
|
4
|
-
Perfect for projects with a custom icon set, and you want dynamic usage without hardcoding imports.
|
3
|
+
- A lightweight React component for rendering **custom-made SVG icons** with **TailwindCSS** support.
|
4
|
+
- Perfect for projects with a custom icon set, and you want dynamic usage without hardcoding imports.
|
5
5
|
|
6
6
|
## 📦 Installation
|
7
7
|
|
@@ -33,20 +33,11 @@ function Example() {
|
|
33
33
|
|
34
34
|
## ⚙️ Props
|
35
35
|
|
36
|
-
**Prop** | **Type** | **Required** | **Description**
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
## 💡 Example Folder Structure
|
42
|
-
|
43
|
-
project-root/
|
44
|
-
├── assets/
|
45
|
-
│....└── icons/
|
46
|
-
│.........├── Checkmark.svg
|
47
|
-
│.........└── Close.svg
|
48
|
-
├── App.tsx
|
49
|
-
└── ...
|
36
|
+
| **Prop** | **Type** | **Required** | **Description** |
|
37
|
+
| :------- | :------- | :----------- | :----------------------------------------------------------------- |
|
38
|
+
| iconName | string | yes | Name of the SVG icon file (without .svg) located in /assets/icons/ |
|
39
|
+
| size | number | no | Icon size in pixels (width & height). Default: 25 |
|
40
|
+
| color | string | no | TailwindCSS text color class (e.g., text-white, text-gray-500) |
|
50
41
|
|
51
42
|
## 🧩 Built With
|
52
43
|
|