New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-typeflux

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-typeflux

A lightweight, modern, and customizable rich text editor and viewer for React.

latest
Source
npmnpm
Version
0.1.3
Version published
Maintainers
1
Created
Source

React Typeflux

A lightweight, easy-to-use rich text editor and viewer for React applications.

✨ Features

  • 📝 Rich text editing
  • 👀 Built-in viewer
  • 🎨 Pre-styled with TailwindCSS (no extra setup needed)
  • 📋 Supports rich paste (copy-paste formatted text)

📦 Installation

npm install react-typeflux

or with yarn:

yarn add react-typeflux

🚀 Usage

import React, { useState } from "react";
import { RichTextEditor, RichTextViewer } from "react-typeflux";
import "react-typeflux/dist/react-typeflux.css";

const MyEditor = () => {
  const [content, setContent] = useState("");

  return (
    <div>
      <RichTextEditor
        value={content}
        onChange={setContent}
        placeholder="Write your blog content…"
        allowRichPaste
      />

      <h2 className="mt-4 font-bold">Preview</h2>
      <RichTextViewer value={content} />
    </div>
  );
};

export default MyEditor;

⚙️ Props

<RichTextEditor />

PropTypeDefaultDescription
valuestring""The editor's current content
onChangefunction() => {}Callback when content changes
placeholderstring""Placeholder text
allowRichPastebooleanfalseWhether to allow pasting rich text

<RichTextViewer />

PropTypeDefaultDescription
valuestring""The content to render

🛠 Development

To build locally:

git clone https://github.com/haryomidey/react-typeflux.git
cd react-typeflux
npm install
npm run dev

To build for production:

npm run build

📜 License

This project is licensed under the MIT License.

👤 Author

AyotechPortfolio

Keywords

react

FAQs

Package last updated on 31 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts