2.1.0 • Published 2 years ago
@jsmine/react-mention-div v2.1.0
react-mention-div
React component for user mention
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
2 years ago
2.0.1
3 years ago
2.0.0
3 years ago
1.0.2
4 years ago
1.0.3
4 years ago
1.0.1
4 years ago
1.0.0-beta.8
4 years ago
1.0.0-beta.6
4 years ago
1.0.0-beta.7
4 years ago
1.0.0-beta.5
4 years ago
1.0.0-beta.4
4 years ago
1.0.0-beta.3
4 years ago