svg-dynamic-icon 1.0.1 → 1.0.2

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.
Files changed (2) hide show
  1. package/README.md +13 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -3,12 +3,16 @@
3
3
  - A lightweight React component for rendering **custom-made SVG icons** with **TailwindCSS** support.
4
4
  - Perfect for projects with a custom icon set, and you want dynamic usage without hardcoding imports.
5
5
 
6
+ #
7
+
6
8
  ## 📦 Installation
7
9
 
8
10
  ```bash
9
11
  npm install svg-dynamic-icon
10
12
  ```
11
13
 
14
+ #
15
+
12
16
  ## 🚀 Usage
13
17
 
14
18
  ```bash
@@ -25,12 +29,16 @@ function Example() {
25
29
  }
26
30
  ```
27
31
 
32
+ #
33
+
28
34
  ## 📁 Icon Setup
29
35
 
30
36
  - Place your SVG icons in the /assets/icons/ folder.
31
37
  - File names must match the iconName prop exactly (MyIcon.svg → iconName="MyIcon").
32
38
  - Upload square-shaped icons for best rendering (e.g., 24x24 or 64x64).
33
39
 
40
+ #
41
+
34
42
  ## ⚙️ Props
35
43
 
36
44
  | **Prop** | **Type** | **Required** | **Description** |
@@ -39,12 +47,16 @@ function Example() {
39
47
  | size | number | no | Icon size in pixels (width & height). Default: 25 |
40
48
  | color | string | no | TailwindCSS text color class (e.g., text-white, text-gray-500) |
41
49
 
50
+ #
51
+
42
52
  ## 🧩 Built With
43
53
 
44
54
  - React
45
55
  - react-svg
46
56
  - tailwind-merge
47
57
 
48
- 📝 License
58
+ #
59
+
60
+ ## 📝 License
49
61
 
50
62
  MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svg-dynamic-icon",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "build": "node build.js"