{"repo":"inokawa/rich-textarea","free":true,"listed":false,"github":"https://github.com/inokawa/rich-textarea","clone":"git clone https://github.com/inokawa/rich-textarea.git","description":"A small customizable textarea for React to colorize, highlight, decorate texts, offer autocomplete and much more.","language":"TypeScript","stars":418,"topics":["textarea","react","richtext","highlight","editor","contenteditable","react-component","autocomplete","input","tagging"],"license":"MIT","category":"ui-components","readme_excerpt":"rich-textarea A small customizable textarea for React to colorize, highlight, decorate texts, offer autocomplete and much more. [!NOTE] I also recommend trying editate. It is a spiritual successor to rich-textarea. Demo https://inokawa.github.io/rich-textarea/ Features - Styleable texts: Not just highlighting texts like similar libraries, this library also supports colorizing, decorating and more. Regex or any tokenizers can be used. - Easy to interact with events: You can get caret position and can catch some mouse events on texts, which are useful to display something reflects user actions. - Compatible with textarea: Except added features, this library is designed to behave as native textarea as much as possible. If not worked properly, please report it in an issue or PR. - Out of the box integration: Works as both controlled and uncontrolled. Supports formik, react-hook-form, @tanstack/react-form and more. Supports SSR. Supports form with Server Actions in Next.js and action in Remix. - IME composition handling: IME related events have some cross browser problems. This library handles them for easy to use. - Lightweight: Trying to support many usecases but also keep bundle size small. Currently 3kB (gzipped). Motivation Sometimes we need customized text editor in web. However creating it with raw contenteditable is so hard to do properly and editor frameworks are usually too heavy... Maybe you really need is just a textarea with highlighting and some hovered menus, but na","default_branch":null,"files":null,"tree":[],"storefront":"/r/inokawa","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/inokawa/rich-textarea/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}