npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

textease

v1.0.6

Published

textease is a richtext editor

Downloads

35

Readme

Textease

Textease is a powerful React rich text editor library. It provides a customizable toolbar and a variety of text editing tools, allowing users to manage themes, toolbar visibility, and configure rich text editing easily in React applications.

Features

  • Customizable Toolbar: Choose which tools you want to include in the editor.
  • Theme Support: Define a light or dark theme for the editor interface.
  • Fixed or Dynamic Toolbars: Decide whether the toolbar should be fixed at the top or float with the content.
  • Rich Text Tools: Includes formatting options such as bold, italic, underline, font size, font family, block quotes, code snippets, links, alignment, color pickers, and more.

Installation

Install the Textease package using npm:

npm install textease

Usage

Here's a simple example to demonstrate how to use the Textease rich text editor in a React application.

Copy code
import React, { useState } from 'react';
import BananaWriter from './BananaWriter'; // Import Textease component

const App = () => {
  const [editorContent, setEditorContent] = useState("");

  // Function to handle editor content change
  const handleEditorChange = (content) => {
    setEditorContent(content);
  };

  return (
    <div>
      <h1>Textease Editor Example</h1>
      <BananaWriter
        tools={[
          'bold', 'italic', 'underline', 'fontFamily', 'blockQuote', 'code', 'separate', 'link',
          'fontSize', 'header', 'file', 'bgPicker', 'colorPicker', 'alignLeft', 'alignCenter',
          'alignRight', 'remove'
        ]}
        theme="light" // Define theme: 'light' or 'dark'
        fixed={true} // Fix toolbar at the top
        onContentChange={handleEditorChange} // Capture editor changes
      />
      <h2>Editor Content Preview:</h2>
      <div>{editorContent}</div>
    </div>
  );
};

export default App;

Props

  • tools: An array of editor tools to be included in the toolbar. Example: ['bold', 'italic', 'underline', 'fontFamily', 'blockQuote', 'link']
  • theme: Set the theme for the editor. Options: 'light', 'dark'.
  • fixed: Boolean to control whether the toolbar is fixed at the top. Set true for a fixed toolbar or false for a floating toolbar.
  • onContentChange: A callback function that returns the updated editor content to the parent component.

Example Tools

  • Formatting Tools: bold, italic, underline, header, fontSize, fontFamily
  • Insert Tools: link, blockQuote, code, file
  • Alignment Tools: alignLeft, alignCenter, alignRight
  • Utility Tools: bgPicker, colorPicker, remove

Customization

You can customize the tools you want in the toolbar by modifying the tools prop in the TextEase component. Additionally, the editor supports theme changes (light or dark) and toolbar positioning (fixed or dynamic).

Contribution

We welcome contributions! If you'd like to contribute to Textease, feel free to submit issues or pull requests on our GitHub repository.

License

This project is licensed under the MIT License.

Keywords

  • React Rich Text Editor
  • Textease
  • Rich Text Editing
  • Customizable Toolbar
  • Text Formatting Tools
  • React Component