UNPKG

reactjs-tiptap-editor

Version:

A modern WYSIWYG rich text editor based on tiptap and shadcn ui for React

21 lines (20 loc) 820 B
import { jsx as i } from "react/jsx-runtime"; import * as c from "react"; import { d as o } from "./RichTextEditor-iSPxjLdO.js"; const x = c.forwardRef( ({ className: t, ...e }, r) => /* @__PURE__ */ i( "textarea", { className: o( "richtext-flex richtext-min-h-[80px] richtext-w-full richtext-rounded-md !richtext-border richtext-border-input richtext-bg-background richtext-px-3 richtext-py-2 richtext-text-sm richtext-ring-offset-background placeholder:richtext-text-muted-foreground focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-2 disabled:richtext-cursor-not-allowed disabled:richtext-opacity-50", t ), ref: r, ...e } ) ); x.displayName = "Textarea"; export { x as T };