<- projects

rte-react

v0.1.5

Built on Tiptap/ProseMirror under the hood, rte-react drops in as a single <RichEditor /> component with HTML, Markdown, or JSON output, a toolbar you control tool-by-tool, and a live font picker - without wiring up the editor core yourself.

$npm install rte-reactnpmgithub

// usage

App.tsx
import { RichEditor } from 'rte-react';
import 'rte-react/styles';
 
function App() {
const [content, setContent] = useState('<p>Hello world</p>');
 
return (
<RichEditor
value={content}
onChange={setContent}
placeholder="Start typing..."
toolbar={['bold', 'italic', 'underline', 'divider', 'bulletList', 'link']}
/>
);
}

// result

preview - try typing