Skip to main content

Getting Started

Installation

npm install @opentf/react-ta-input

Usage

import { useRef } from "react";
import { TaInput } from "@opentf/react-ta-input";

export default function App() {
const inputRef = useRef();

const handleChange = (value) => {
console.log(value);
};

return (
<div>
<TaInput inputRef={inputRef} onChange={handleChange}>
<textarea ref={inputRef} rows={5} cols={50} />
</TaInput>
</div>
);
}