ngx-easy-emoji-picker 0.0.1
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 +65 -0
- package/esm2022/emojis.json +12794 -0
- package/esm2022/lib/emoji-picker.component.mjs +56 -0
- package/esm2022/lib/emoji-picker.service.mjs +37 -0
- package/esm2022/ngx-easy-emoji-picker.mjs +5 -0
- package/esm2022/ngx-emoji-picker.mjs +5 -0
- package/esm2022/public-api.mjs +6 -0
- package/fesm2022/ngx-easy-emoji-picker-emojis-Co7hqxeV.mjs +21330 -0
- package/fesm2022/ngx-easy-emoji-picker-emojis-Co7hqxeV.mjs.map +1 -0
- package/fesm2022/ngx-easy-emoji-picker.mjs +101 -0
- package/fesm2022/ngx-easy-emoji-picker.mjs.map +1 -0
- package/fesm2022/ngx-emoji-picker-emojis-Co7hqxeV.mjs +21330 -0
- package/fesm2022/ngx-emoji-picker-emojis-Co7hqxeV.mjs.map +1 -0
- package/fesm2022/ngx-emoji-picker.mjs +101 -0
- package/fesm2022/ngx-emoji-picker.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/emoji-picker.component.d.ts +27 -0
- package/lib/emoji-picker.service.d.ts +10 -0
- package/package.json +37 -0
- package/public-api.d.ts +2 -0
package/README.md
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
## ngx-emoji-picker
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
Angular library that provides a component for easily integrating emoji selection into your web applications. It offers a user-friendly interface for browsing and selecting emojis, which can be customized to match your application's design.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install ngx-emoji-picker
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
1. Import
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { EmojiPicker } from "ngx-emoji-picker";
|
|
19
|
+
|
|
20
|
+
@NgModule({
|
|
21
|
+
imports: [EmojiPicker],
|
|
22
|
+
})
|
|
23
|
+
export class AppModule {}
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
2. Use it in your template
|
|
27
|
+
|
|
28
|
+
```html
|
|
29
|
+
<emoji-picker (selectedEmoji)="onEmojiSelect($event)"> </emoji-picker>
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Example
|
|
33
|
+
|
|
34
|
+
app.component.ts
|
|
35
|
+
|
|
36
|
+
```typescript
|
|
37
|
+
import { Component } from "@angular/core";
|
|
38
|
+
import { RouterOutlet } from "@angular/router";
|
|
39
|
+
import { EmojiPicker } from "ngx-emoji-picker";
|
|
40
|
+
|
|
41
|
+
@Component({
|
|
42
|
+
selector: "app-root",
|
|
43
|
+
standalone: true,
|
|
44
|
+
imports: [RouterOutlet, EmojiPicker],
|
|
45
|
+
templateUrl: "./app.component.html",
|
|
46
|
+
styleUrl: "./app.component.css",
|
|
47
|
+
})
|
|
48
|
+
export class AppComponent {
|
|
49
|
+
title = 'my-project';
|
|
50
|
+
|
|
51
|
+
selectedEmoji = '';
|
|
52
|
+
|
|
53
|
+
onEmojiSelected(emoji: string) {
|
|
54
|
+
this.selectedEmoji = emoji;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
app.component.html
|
|
60
|
+
|
|
61
|
+
```html
|
|
62
|
+
<emoji-picker (selectedEmoji)="onEmojiSelected($event)"> </emoji-picker>
|
|
63
|
+
|
|
64
|
+
<span [innerHTML]="selectedEmoji"></span>
|
|
65
|
+
```
|