Coder Social home page Coder Social logo

nikaera / react-emoji-textarea Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 4.0 328 KB

You can use Slack-like emoji shortcuts on textarea! šŸ¦øā€ā™‚ļøāŒØļø

Home Page: https://www.npmjs.com/package/@nikaera/react-emoji-textarea

JavaScript 53.76% Shell 0.54% TypeScript 45.70%
emoji react react-components react-library shortcut textarea typescript

react-emoji-textarea's Introduction

react-emoji-textarea's People

Contributors

nikaera avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

react-emoji-textarea's Issues

Can @mention be implemented as well?

@nikaera it will be nice if this library supports @mention just like twitter input. Dunno if it can be implemented so that one can easily plug-in an object array of users for the component to do the rest.

Can we have the library translate the emojis to their SVG equivalent too?

Hey, I'm wondering if it will be nice if to convert the emoji to both as native and SVG format combined with the text. Can there be a tweak that, that onChange function returns an an object containing two properties, name nativeTextEmoji and svgTextEmoji? With this, one can choose to save the native in the database and display the SVG in the app. There should also be a method that can convert the native stored to SVG when displaying in the app.

Can't clear the textarea and no onKeyPress event to handle user is typing

Hello, I came across your library and you have done a wonderful job but I'm wondering why value, onKeyPress, OnKeyDown attributes of the textarea are not exposed. This makes it hard to clear the textarea after sending your message. Another issue is that, onKeyPress event is not exposed and as such you can't detect when a user is typing. Can these adjustments be made?
I have pulled your code and I have been able to somehow tweak the code but I'm finding it hard to expose the value attribute and have a state change to clear the textarea when the form has been submitted even after using a ref it's not working.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.