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
> React component for handling character triggers inside textareas and input fields. 🐼
9
+
10
+
## Description
4
11
5
12
Useful for building applications that need Slack-like emoji suggestions (triggered by typing `:`) or Github-like user mentions (triggered by typing `@`).
6
13
@@ -16,7 +23,7 @@ The hooks pass some meta-data such as the cursor position and/or the text that h
16
23
17
24
## Demo
18
25
19
-
A live demo of this component can be found [here](https://abinavseelan.com/react-input-trigger)
26
+
A live demo of this component can be found [here](https://abinavseelan.com/react-input-trigger).
20
27
21
28
A detailed guide on using this component to build a Github-style user mentions component [can be found on CampVanilla](https://blog.campvanilla.com/reactjs-input-trigger-github-twitter-mentions-8ad1d878110d).
22
29
@@ -29,7 +36,6 @@ A detailed guide on using this component to build a Github-style user mentions c
29
36
$ npm install react-input-trigger
30
37
```
31
38
32
-
33
39
* Import the component from the package.
34
40
35
41
```js
@@ -44,6 +50,16 @@ import InputTrigger from 'react-input-trigger';
44
50
</InputTrigger>
45
51
```
46
52
53
+
---
54
+
55
+
Or get it in the browser directly via [unpkg](https://unpkg.com/react-input-trigger@latest/build/lib/react-input-trigger.js):
0 commit comments