@central-icons-react/round-outlined-radius-2-stroke-2 0.0.33 → 0.0.36
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 +34 -9
- package/icons-index.json +1492 -0
- package/package.json +21 -3
- package/tsconfig.json +23 -0
package/README.md
CHANGED
@@ -4,6 +4,7 @@ A collection of round outline React icons with 2px radius and 2px stroke width,
|
|
4
4
|
|
5
5
|
## Table of Contents
|
6
6
|
|
7
|
+
- [Quick Start](#quick-start)
|
7
8
|
- [Installation](#installation)
|
8
9
|
- [Requirements](#requirements)
|
9
10
|
- [Usage](#usage)
|
@@ -14,6 +15,24 @@ A collection of round outline React icons with 2px radius and 2px stroke width,
|
|
14
15
|
- [License](#license)
|
15
16
|
- [Troubleshooting](#troubleshooting)
|
16
17
|
|
18
|
+
## Quick Start
|
19
|
+
|
20
|
+
```bash
|
21
|
+
# Set your license key first
|
22
|
+
export CENTRAL_LICENSE_KEY=your_license_key
|
23
|
+
|
24
|
+
# Install with alias 'central-icons'
|
25
|
+
npm install central-icons@npm:@central-icons-react/round-outlined-radius-2-stroke-2
|
26
|
+
```
|
27
|
+
|
28
|
+
```jsx
|
29
|
+
import { IconHome } from "central-icons/IconHome";
|
30
|
+
|
31
|
+
function MyComponent() {
|
32
|
+
return <IconHome />;
|
33
|
+
}
|
34
|
+
```
|
35
|
+
|
17
36
|
## Installation
|
18
37
|
|
19
38
|
This package is private and can be installed via your organization's private npm registry. Make sure you have the required license key set up before installation.
|
@@ -37,7 +56,9 @@ pnpm add @central-icons-react/round-outlined-radius-2-stroke-2
|
|
37
56
|
|
38
57
|
## Usage
|
39
58
|
|
40
|
-
|
59
|
+
### Individual Imports (Recommended)
|
60
|
+
|
61
|
+
Icons can be imported individually to keep your bundle size minimal:
|
41
62
|
|
42
63
|
```jsx
|
43
64
|
import { IconHome } from "@central-icons-react/round-outlined-radius-2-stroke-2/IconHome";
|
@@ -47,26 +68,30 @@ function MyComponent() {
|
|
47
68
|
}
|
48
69
|
```
|
49
70
|
|
50
|
-
|
71
|
+
### Import alias
|
72
|
+
|
73
|
+
If you want to have a bit cleaner imports (and you are just using one icon type), you can use import aliases
|
74
|
+
(Requires npm at least v6.9.0 or yarn)
|
75
|
+
|
76
|
+
`npm install central-icons@npm:@central-icons-react/round-outlined-radius-2-stroke-2`
|
51
77
|
|
52
78
|
```jsx
|
53
|
-
import {
|
79
|
+
import { IconHome } from "central-icons/IconHome";
|
54
80
|
|
55
81
|
function MyComponent() {
|
56
|
-
return <
|
82
|
+
return <IconHome />;
|
57
83
|
}
|
58
84
|
```
|
59
85
|
|
60
|
-
|
61
|
-
(Requires npm at least v6.9.0 or yarn)
|
86
|
+
### Central Icon Component
|
62
87
|
|
63
|
-
|
88
|
+
Or you can import from the main entry point (not recommended to be used in production, loads all icons):
|
64
89
|
|
65
90
|
```jsx
|
66
|
-
import {
|
91
|
+
import { CentralIcon } from "@central-icons-react/round-outlined-radius-2-stroke-2";
|
67
92
|
|
68
93
|
function MyComponent() {
|
69
|
-
return <
|
94
|
+
return <CentralIcon name="IconName" />;
|
70
95
|
}
|
71
96
|
```
|
72
97
|
|