Content pfp
Content
@
https://opensea.io/collection/dev-21
0 reply
0 recast
2 reactions

Tiago pfp
Tiago
@alvesjtiago.eth
it seems like react-mentions (https://www.npmjs.com/package/react-mentions) has been abandoned. does anybody know about a good replacement that works well with shadcn?
1 reply
2 recasts
10 reactions

Andrei O. pfp
Andrei O.
@andrei0x309
I did mentions in a few frameworks(vue,react,svelte) and with a few UI libraries, it's not such a hard lift to require a library just build your own, and it will never be deprecated unless you abandon the project. Here is an example https://github.com/andrei0x309/fosscaster.xyz/blob/main/app/components/functional/modals/compose-cast.tsx#L355 in fosscaster.xyz repo, exactly using shadcn with react. When doing mentions the only important thing is if you use an editable div or a textarea, generally editable div is more modern but it can be done with both technologies, I haven't tried it yet to build it with the native popover API though.
1 reply
0 recast
0 reaction

Tiago pfp
Tiago
@alvesjtiago.eth
thanks. I ended up implementing my own mentions using shadcn components. will share soon.
1 reply
0 recast
1 reaction

Andrei O. pfp
Andrei O.
@andrei0x309
Yup, that's generally the best approach if something is not super complicated implement it yourself, even if is not the best implementation, each own implementation will reduce technical debt and will increase maintainability, and it will also provide the chance to optimize based on your specific needs.
0 reply
0 recast
0 reaction