UNPKG

react-link-textarea

Version:

Enhancing UX by breaking the limitations of original textarea tag, supports link integration and offers flexible styling options.

10 lines (9 loc) 481 B
import { CSSProperties, MutableRefObject, RefObject } from "react"; import { LinkTargetType } from "../types"; declare const useMirrorTextarea: (textareaRef: MutableRefObject<HTMLTextAreaElement | null>, mirroredRef: RefObject<HTMLDivElement>) => { resizeObserver: ResizeObserver; applyStyleToMirroredRef: (style?: CSSProperties) => void; setLinkifyText: (linkTarget: LinkTargetType) => void; copyTextToMirroredRef: () => void; }; export default useMirrorTextarea;