1.0.11 • Published 4 years ago

react-textarea-mention v1.0.11

Weekly downloads
25
License
MIT
Repository
github
Last release
4 years ago

react-textarea-mention

Mentions in TextArea for React

NPM JavaScript Style Guide

Install

npm

$ npm install --save react-textarea-mention

Getting Started

import React from 'react';
import Mention from 'react-textarea-mention';

const MyComponent = props => {
    const handleChange = content => {
        console.log(content);
    }
 
  return (
    <Mention
        onChange={handleChange}
        field="username"
        data={[
            {
            name: "John Doe",
            username: "johndoe"
            },
            {
            name: "Jane Good",
            username: "janekesse"
            },
            {
            name: "Kofi Ghana",
            username: "kofighana"
            }
      ]}
    />
  );
};
export default MyComponent;

Example

React Textarea Mention

Props

symbol

cssClass

data

field

onChange

renderContent

textAreaProps

More Coming Up...

Pull Requests

Pull requests are welcome

License

React TextArea Mention may be freely distributed under the MIT license.

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago