2.1.0 • Published 1 year ago

@jsmine/react-mention-div v2.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

react-mention-div

React component for user mention

example

Getting started

install the react-mention-div via npm

npm i @jsmine/react-mention-div

import it in your file

import Mention from '@jsmine/react-mention-div'

use it:

 <Mention 
        className={'class for edit box'}      	      	
        onChange={(change)=>'your on change handler'} 
      	options={[{value:'ABCD', id:1},{value:'XYZ', id:2}]}
      	style={'inline style'} 
      	value={{rawText:"@1erty",mentions:[{value:'qw', id: 1, startIndex: 0, endIndex:1}]}}
      />

version 2.0.0

introduced props

value

depricated props

ListingUi, trigger, optionsListClass, optionDisplayKey

2.1.0

1 year ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.2

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0-beta.8

3 years ago

1.0.0-beta.6

3 years ago

1.0.0-beta.7

3 years ago

1.0.0-beta.5

3 years ago

1.0.0-beta.4

3 years ago

1.0.0-beta.3

3 years ago