Lexical plugin that makes all emojis a twemoji.
The plugin does not provide any emoji pickers. It listens for changes on TextNode
s, and parses them for any inserted emojis.
npm i @barsnes/lexical-twemoji
import {
LexicalTwemojiPlugin,
LexicalTwemojiNode,
} from "@barsnes/lexical-twemoji";
const initialConfig = {
nodes: [LexicalTwemojiNode],
};
<LexicalComposer initialConfig={initialConfig}>
<LexicalTwemojiPlugin />
</LexicalComposer>;