vadivam-react 0.0.21 → 0.0.23

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 +14 -22
  2. package/package.json +9 -4
package/README.md CHANGED
@@ -1,11 +1,15 @@
1
1
  # vadivam-react
2
2
 
3
- Pixel-perfect, open-source, gorgeous React icons for refined interfaces.
3
+ Pixel-perfect 24px outline icon components for React with tree-shakeable imports.
4
4
 
5
- ![All Vadivam icons](https://raw.githubusercontent.com/praveenjuge/vadivam/main/apps/web/public/preview.png?v=0.0.21)
5
+ [![npm version](https://img.shields.io/npm/v/vadivam-react?style=flat-square&color=111)](https://www.npmjs.com/package/vadivam-react)
6
+ [![downloads](https://img.shields.io/npm/dw/vadivam-react?style=flat-square&color=666)](https://www.npmjs.com/package/vadivam-react)
7
+ [![license](https://img.shields.io/npm/l/vadivam-react?style=flat-square&color=111)](https://github.com/praveenjuge/vadivam/blob/main/LICENSE)
8
+
9
+ ![All Vadivam icons](https://raw.githubusercontent.com/praveenjuge/vadivam/main/apps/docs/public/preview.png?v=0.0.23)
6
10
 
7
11
  ```sh
8
- bun add vadivam-react
12
+ npm install vadivam-react
9
13
  ```
10
14
 
11
15
  ```tsx
@@ -16,12 +20,7 @@ export function Example() {
16
20
  }
17
21
  ```
18
22
 
19
- Icons accept SVG properties, `size`, `color`, `strokeWidth`,
20
- `absoluteStrokeWidth`, `title`, refs, and SVG children. Use `fill` for filled
21
- icons, or nest icons and SVG elements to combine them.
22
-
23
- Apply shared defaults with the provider or target the generated `vadivam` and
24
- `vadivam-{name}` classes in CSS:
23
+ Apply shared defaults with the provider:
25
24
 
26
25
  ```tsx
27
26
  import { Activity, VadivamProvider } from "vadivam-react";
@@ -31,23 +30,16 @@ import { Activity, VadivamProvider } from "vadivam-react";
31
30
  </VadivamProvider>;
32
31
  ```
33
32
 
34
- Every icon has normal, suffixed, and prefixed aliases:
33
+ Use the dynamic API only for names stored in external data:
35
34
 
36
35
  ```tsx
37
- import { Activity, ActivityIcon, VadivamActivity } from "vadivam-react";
38
- ```
39
-
40
- Per-icon, generic-node, and dynamic APIs are generated during build:
41
-
42
- ```tsx
43
- import Activity, { __iconNode } from "vadivam-react/activity";
44
- import { Icon } from "vadivam-react";
45
36
  import { DynamicIcon, iconNames } from "vadivam-react/dynamic";
46
37
 
47
- <Icon iconNode={__iconNode} />;
48
38
  <DynamicIcon name="activity" />;
49
39
  ```
50
40
 
51
- Prefer static icon imports when the icon name is known. `DynamicIcon` is
52
- intended for names stored in external data and creates a separate lazy module
53
- for every icon.
41
+ - Native SVG properties, accessible titles, refs, and children
42
+ - Tree-shakeable named, aliased, and per-icon imports
43
+ - Provider, generic-node, and typed dynamic APIs
44
+
45
+ [Browse icons](https://vadivam.praveenjuge.com) · [GitHub](https://github.com/praveenjuge/vadivam) · [Issues](https://github.com/praveenjuge/vadivam/issues)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vadivam-react",
3
- "version": "0.0.21",
4
- "description": "Pixel-perfect, open-source, gorgeous React icons for refined interfaces.",
3
+ "version": "0.0.23",
4
+ "description": "Pixel-perfect 24px outline icon components for React with tree-shakeable imports.",
5
5
  "license": "MIT",
6
6
  "author": "Praveen Juge",
7
7
  "repository": {
@@ -15,11 +15,16 @@
15
15
  },
16
16
  "keywords": [
17
17
  "icons",
18
- "react",
19
18
  "svg",
19
+ "outline-icons",
20
+ "icon-library",
20
21
  "icon-pack",
22
+ "24px",
23
+ "tree-shakeable",
21
24
  "open-source",
22
- "vadivam"
25
+ "vadivam",
26
+ "react",
27
+ "react-icons"
23
28
  ],
24
29
  "type": "module",
25
30
  "sideEffects": false,