1.0.21 ā€¢ Published 3 years ago

react-textarea-emoji v1.0.21

Weekly downloads
10
License
MIT
Repository
github
Last release
3 years ago

react-textarea-emoji

Text Area to use emojis while typing

License: MIT NPM JavaScript Style Guide

Demo page
ā†‘/ā†“ Move the selection in the emoji list
Enter Validate the selection
Escape Leave the emoji list selection
The emoji list appears automatically when typing a colon followed by a letter :a

Install

npm install --save react-textarea-emoji

Props

NameDescription
textAreaStyleSet a particular style to the textarea

Usage

import React, { Component } from 'react'

import { TextAreaEmoji } from 'react-textarea-emoji'
import 'bootstrap/dist/css/bootstrap.min.css'
import 'react-textarea-emoji/dist/index.css';

class Example extends Component {
  render() {
    return (
      <TextAreaEmoji
        style={{
          position: 'fixed',
          top: '30%',
          left: '50%',
          transform: 'translateX(-50%)',
        }}
        textAreaStyle={{
          fontSize: '20pt',
        }}/>
    );
  }
}

export default Example

Emojis

The emoji list is actually small, to increase the possibility, just complete the file by adding a json object in the emojis object array:

{"char": "šŸŒ·", "name": "tulip", "shortname": ":tulip:", "unicode": "1f337"}
1.0.2

3 years ago

1.0.21

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago