A powerful and flexible rich text editor component for React, built on top of Lexical.
Check out the live interactive demo and documentation: Live Demo & Storybook
npm install my-react-text-editor
# or
yarn add my-react-text-editorImport the component and usage it in your React application:
import React from 'react';
import { TextEditor } from 'my-react-text-editor';
import 'my-react-text-editor/dist/index.css'; // Don't forget the CSS!
function App() {
return (
<div className="App">
<h1>My Editor</h1>
<TextEditor />
</div>
);
}
export default App;- Rich Text Formatting: Bold, Italic, Underline, and more.
- Lists: Ordered and Unordered lists.
- Code Blocks: Support for code snippets.
- Quotes: Blockquote support.
- Modern UI: Clean and responsive design.
- TypeScript Support: Fully typed for excellent developer experience.
To develop locally:
- Clone the repository.
- Install dependencies:
npm install - Start Storybook:
npm run storybook
MIT © Sohan Paliyal