Getting Started
Installation
- npm
- Yarn
- Pnpm
- Bun
npm install @opentf/react-ta-input
yarn add @opentf/react-ta-input
pnpm add @opentf/react-ta-input
bun add @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>
);
}