You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+70-2Lines changed: 70 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,74 @@
1
1
# eos-icons-react
2
2
[](https://github.com/ellerbrock/open-source-badges/)
3
3
4
+
## Using eos-icons-react in your projects
5
+
Refer to [EOS Icons](https://eos-icons.com/) for more details about all the icons that are supported by EOS-Icons React
6
+
7
+
[Storybook EOS-Icons React](https://storybook.eos-icons.com/), checkout storybook for an in-depth look at the various different icons that are provided by EOS-Icons React as well the props available for configuring icons.
8
+
9
+
### Installation
10
+
```
11
+
# yarn
12
+
yarn add eos-icons-react
13
+
# npm
14
+
npm install eos-icons-react
15
+
```
16
+
17
+
### Usage
18
+
#### common icons usage
19
+
```
20
+
import { EOS_STAR } from 'eos-icons-react';
21
+
22
+
<EOS_STAR />
23
+
```
24
+
#### Filled/Outlined icons usage
25
+
```
26
+
import { EOS_STAR_FILLED, EOS_STAR_OUTLINED } from 'eos-icons-react';
27
+
28
+
<EOS_STAR_FILLED />
29
+
<EOS_STAR_OUTLINED />
30
+
```
31
+
#### Animated icons usage
32
+
```
33
+
import { EOS_LOADING_ANIMATED } from 'eos-icons-react';
34
+
35
+
<EOS_LOADING_ANIMATED />
36
+
```
37
+
38
+
### Props
39
+
#### Prop usage
40
+
```
41
+
import { EOS_LOADING_ANIMATED } from 'eos-icons-react';
42
+
43
+
# The below icons will have the color #FF5733, size xxl and a rotation of 45 degree
| theme | string | 'filled' | sets icon theme (only available for common components)**|
56
+
57
+
> (*) Size can be provided using either string or number. Pre-Defined size list
58
+
59
+
| Size Name | Size Value |
60
+
|:-----|:-----|
61
+
| xs | 4 |
62
+
| s | 8 |
63
+
| base | 14 |
64
+
| m | 18 |
65
+
| l | 24 |
66
+
| xl | 32 |
67
+
| xxl | 48 |
68
+
| xxxl | 64 |
69
+
70
+
> (**) The theme prop is only available for common icon component. Eos-Icons React has 4 different types of icon components (common / filled / outlined / animated). The common icon component contains both filled and outlined version of the icon. For switching between the two types of version you can either supply 'outlined' or 'filled' to the theme prop.
71
+
4
72
## Development of EOS icons React
5
73
- Cloning the repo:
6
74
```
@@ -26,14 +94,14 @@ Follow the above steps before running the test command. The test sequence requir
0 commit comments