lucide-react 0.95.0 → 0.96.0
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 +15 -13
- package/dist/cjs/lucide-react.js +11 -1
- package/dist/cjs/lucide-react.js.map +1 -1
- package/dist/esm/icons/check-check.js +9 -0
- package/dist/esm/icons/index.js +1 -0
- package/dist/lucide-react.d.ts +1 -0
- package/dist/umd/lucide-react.js +11 -1
- package/dist/umd/lucide-react.js.map +1 -1
- package/dist/umd/lucide-react.min.js +2 -2
- package/dist/umd/lucide-react.min.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,9 +8,11 @@ Implementation of the lucide icon library for react applications.
|
|
|
8
8
|
|
|
9
9
|
```sh
|
|
10
10
|
yarn add lucide-react
|
|
11
|
+
```
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
or
|
|
13
14
|
|
|
15
|
+
```sh
|
|
14
16
|
npm install lucide-react
|
|
15
17
|
```
|
|
16
18
|
|
|
@@ -23,11 +25,11 @@ Each icon can be imported as a react component.
|
|
|
23
25
|
|
|
24
26
|
You can pass additional props to adjust the icon.
|
|
25
27
|
|
|
26
|
-
```
|
|
28
|
+
```js
|
|
27
29
|
import { Camera } from 'lucide-react';
|
|
28
30
|
|
|
29
31
|
const App = () => {
|
|
30
|
-
return <Camera color="red" size={48}
|
|
32
|
+
return <Camera color="red" size={48} />;
|
|
31
33
|
};
|
|
32
34
|
|
|
33
35
|
export default App;
|
|
@@ -35,19 +37,19 @@ export default App;
|
|
|
35
37
|
|
|
36
38
|
### Props
|
|
37
39
|
|
|
38
|
-
|
|
|
39
|
-
|
|
|
40
|
-
| `size`
|
|
41
|
-
| `color`
|
|
42
|
-
| `strokeWidth
|
|
40
|
+
| name | type | default |
|
|
41
|
+
| ------------- | -------- | ------------ |
|
|
42
|
+
| `size` | _Number_ | 24 |
|
|
43
|
+
| `color` | _String_ | currentColor |
|
|
44
|
+
| `strokeWidth` | _Number_ | 2 |
|
|
43
45
|
|
|
44
46
|
### Custom props
|
|
45
47
|
|
|
46
48
|
You can also pass custom props that will be added in the svg as attributes.
|
|
47
49
|
|
|
48
|
-
```
|
|
50
|
+
```js
|
|
49
51
|
const App = () => {
|
|
50
|
-
return <Camera fill="red"
|
|
52
|
+
return <Camera fill="red" />;
|
|
51
53
|
};
|
|
52
54
|
```
|
|
53
55
|
|
|
@@ -57,13 +59,13 @@ It is possible to create a generic icon component to load icons.
|
|
|
57
59
|
|
|
58
60
|
> :warning: The example below is importing all ES modules. This is **not** recommended when you using a bundler since your application build size will grow substantially.
|
|
59
61
|
|
|
60
|
-
```
|
|
62
|
+
```js
|
|
61
63
|
import * as icons from 'lucide-react';
|
|
62
64
|
|
|
63
|
-
const Icon = ({name, color, size}) => {
|
|
65
|
+
const Icon = ({ name, color, size }) => {
|
|
64
66
|
const LucideIcon = icons[name];
|
|
65
67
|
|
|
66
|
-
return <LucideIcon color={color} size={size}
|
|
68
|
+
return <LucideIcon color={color} size={size} />;
|
|
67
69
|
};
|
|
68
70
|
|
|
69
71
|
export default Icon;
|
package/dist/cjs/lucide-react.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* lucide-react v0.
|
|
2
|
+
* lucide-react v0.96.0 - ISC
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
'use strict';
|
|
@@ -2833,6 +2833,15 @@ var Cat = createReactComponent('Cat', [['path', {
|
|
|
2833
2833
|
}]]);
|
|
2834
2834
|
var Cat$1 = Cat;
|
|
2835
2835
|
|
|
2836
|
+
var CheckCheck = createReactComponent('CheckCheck', [['path', {
|
|
2837
|
+
d: 'M18 6 7 17l-5-5',
|
|
2838
|
+
key: '116fxf'
|
|
2839
|
+
}], ['path', {
|
|
2840
|
+
d: 'm22 10-7.5 7.5L13 16',
|
|
2841
|
+
key: 'ke71qq'
|
|
2842
|
+
}]]);
|
|
2843
|
+
var CheckCheck$1 = CheckCheck;
|
|
2844
|
+
|
|
2836
2845
|
var CheckCircle2 = createReactComponent('CheckCircle2', [['path', {
|
|
2837
2846
|
d: 'M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10z',
|
|
2838
2847
|
key: '14v8dr'
|
|
@@ -14627,6 +14636,7 @@ exports.Carrot = Carrot$1;
|
|
|
14627
14636
|
exports.Cast = Cast$1;
|
|
14628
14637
|
exports.Cat = Cat$1;
|
|
14629
14638
|
exports.Check = Check$1;
|
|
14639
|
+
exports.CheckCheck = CheckCheck$1;
|
|
14630
14640
|
exports.CheckCircle = CheckCircle$1;
|
|
14631
14641
|
exports.CheckCircle2 = CheckCircle2$1;
|
|
14632
14642
|
exports.CheckSquare = CheckSquare$1;
|