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
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,18 +2,20 @@
2
2
unofficial; bodged by drinking-code
3
3
**do not use in production**
4
4
#### What is Openmoji for React?
5
-
Openmoji is a collection of open source emojis. This repository lets you use these emojis in a reactjs-app easily.
5
+
[Openmoji](https://github.com/hfg-gmuend/openmoji) is a collection of open source emojis. This repository lets you use these emojis in a reactjs-app easily.
6
6
#### Built from (coloured) Openmoji `v12.2.0`
7
7
8
+
> Please comply with the [Openmoji Attribution Requirements](https://github.com/hfg-gmuend/openmoji#attribution-requirements)
9
+
8
10
## Installation
9
-
```
11
+
```shell script
10
12
npm i react-openmoji
11
13
```
12
14
13
15
## Usage
14
16
### Automatically
15
17
For easy and dynamic use you can replace emojis completely automatically:
16
-
```javascript
18
+
```jsx
17
19
importReactfrom'react';
18
20
importreactReplaceEmojisfrom'react-openmoji';
19
21
@@ -26,7 +28,7 @@ export default App;
26
28
27
29
### Manually
28
30
#### Via icon name
29
-
```javascript
31
+
```jsx
30
32
importReactfrom'react';
31
33
import { ManRaisingHand } from'react-openmoji';
32
34
@@ -67,7 +69,7 @@ If a name starts with a number, a `_` is added in front of the name.
67
69
68
70
#### Via unicode
69
71
You can use the unicode of the emoji to import it. Unicodes are listed also in the [Openmoji Library](https://openmoji.org/library/).
0 commit comments