Your comprehensive toolkit for effortless and flexible Lexical development, equipped with essential features.
Hooks
useLexicalToolbaruseHyperlinkEditor
Nodes
KeywordNode,$createKeywordNode,$isKeywordNode
Plugins
ControlledValuePluginDefaultValuePluginHyperlinkPluginKeywordPluginOnChangeContentPluginOnFocusOnBlurPlugin
Utilities
getSelectedNodeconvertHtmlToNodessanitizeUrl,validateUrl
More features are to come.
Install the package using npm or yarn:
npm install lexical-toolkit
yarn add lexical-toolkitTo use a component or utility from the toolkit, simply import it into your project:
import { useLexicalToolbar } from "lexical-toolkit";As of now, detailed documentation for each component and utility is still under development. In the meantime, you can refer to the TypeScript types provided with the package to understand how to use the various features.
Additionally, for practical examples, check out the playground within the repository.
Contributions, feedback, and bug reports are welcome. Please feel free to open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.