All Projects β†’ dooly-ai β†’ Draft Js Typeahead

dooly-ai / Draft Js Typeahead

Licence: mit
Typeaheads for Draft.js inspired by Facebook.com πŸ”­

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Draft Js Typeahead

Awesome Pytorch List Cnversion
Awesome-pytorch-list ηΏ»θ―‘ε·₯δ½œθΏ›θ‘ŒδΈ­......
Stars: ✭ 1,361 (+1063.25%)
Mutual labels:  facebook
Hyprpulse
Brute force multiple accounts at once
Stars: ✭ 105 (-10.26%)
Mutual labels:  facebook
Flutter Reaction Button
Flutter reaction button plugin it is fully customizable widget such as Facebook reaction button
Stars: ✭ 111 (-5.13%)
Mutual labels:  facebook
React Input Enhancements
Set of enhancements for input control
Stars: ✭ 1,375 (+1075.21%)
Mutual labels:  typeahead
Socialcounters
jQuery/PHP - Collection of Social Media APIs that display number of your social media fans. Facebook Likes, Twitter Followers, Instagram Followers, YouTube Subscribers, etc..
Stars: ✭ 104 (-11.11%)
Mutual labels:  facebook
Afgcrack
All in 1 Afganisthani Facebook Cloner [ 7/8/9/10/11 DIGIT ]
Stars: ✭ 105 (-10.26%)
Mutual labels:  facebook
Dark Fb
Hack Facebook
Stars: ✭ 98 (-16.24%)
Mutual labels:  facebook
Ui Mention
Facebook-like @mentions for text inputs built around composability
Stars: ✭ 115 (-1.71%)
Mutual labels:  facebook
Pakcrack
All in 1 Pakisthani Facebook Cloner [ 7/8/9/10/11 DIGIT ]
Stars: ✭ 105 (-10.26%)
Mutual labels:  facebook
Spring Webmvc Pac4j
Security library for Spring Web MVC: OAuth, CAS, SAML, OpenID Connect, LDAP, JWT...
Stars: ✭ 110 (-5.98%)
Mutual labels:  facebook
Learning Social Media Analytics With R
This repository contains code and bonus content which will be added from time to time for the book "Learning Social Media Analytics with R" by Packt
Stars: ✭ 102 (-12.82%)
Mutual labels:  facebook
Socialcount
Unmaintained (see the README): Simple barebones project to show share counts from various social networks.
Stars: ✭ 1,382 (+1081.2%)
Mutual labels:  facebook
Jest
Delightful JavaScript Testing.
Stars: ✭ 37,406 (+31870.94%)
Mutual labels:  facebook
Grayfish
light weight phishing framework with 18+ pages.
Stars: ✭ 101 (-13.68%)
Mutual labels:  facebook
Deepface
Keras implementation of the renowned publication "DeepFace: Closing the Gap to Human-Level Performance in Face Verification" by Taigman et al. Pre-trained weights on VGGFace2 dataset.
Stars: ✭ 113 (-3.42%)
Mutual labels:  facebook
Instant Articles Builder
Instant Articles Rules Editor
Stars: ✭ 99 (-15.38%)
Mutual labels:  facebook
Blog
Lightweight self-hosted facebook-styled PHP blog.
Stars: ✭ 106 (-9.4%)
Mutual labels:  facebook
Skeletonview
☠️ An elegant way to show users that something is happening and also prepare them to which contents they are awaiting
Stars: ✭ 10,804 (+9134.19%)
Mutual labels:  facebook
Flutter auth buttons
Flutter buttons for social platforms
Stars: ✭ 114 (-2.56%)
Mutual labels:  facebook
Tkkeyboardcontrol
TKKeyboardControl adds keyboard awareness and scrolling dismissal (like iMessages app) to any view with only 1 line of code for Swift.
Stars: ✭ 110 (-5.98%)
Mutual labels:  facebook

draft-js-typeahead

NPM version

Typeaheads for Draft.js inspired by Facebook.com.

example

Check out an example of mentions in draft using draft-js-typeahead here. πŸŽ‰

This package provides a higher-order component that wraps draft's Editor component and augments it with typeahead superpowers. One popular use for draft-js-typeahead is to add mentions to your editors.

draft-js-typeahead helps in three ways:

  • It figures out if and where the typeahead should be showing.
  • It keeps track of the typeahead's highlighted item.
  • It triggers a callback when an item is selected (by hitting return).

Installation

$ npm install --save draft-js-typeahead

Examples

Examples are available under the examples/ directory.

Usage

First we'll need to import TypeaheadEditor:

import { TypeaheadEditor } from 'draft-js-typeahead';

TypeaheadEditor is a react component that wraps draft's Editor.

It supports all of the same properties as the latter, as well as a few others:

onTypeaheadChange => (typeaheadState):

This method is called when the typeahead's visibility, position, or text changes. typeaheadState is an object with left, top, text, and selectedIndex properties. A typical callback sets typeaheadState on its own state and uses it to render an overlay in its component's render method. This method is also called when the typeahead is hidden by passing null to typeaheadState.

handleTypeaheadReturn => (text, selectedIndex, selection):

This method is called when an item in the typeahead is selected (by hitting return). A typical callback autocompletes the editor with the selected item and tags it with a draft entity.

Note: By default draft-js-typeahead does not filter items in the typeahead based on the entered text, see the mentions example for one approach to filtering.

License

MIT Β© Justin Vaillancourt

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].