@opentf/react-ta-input
Version:
The Thamizhl (தமிழ்) language scripts input for ReactJS.
81 lines (51 loc) • 1.61 kB
Markdown
<img align="left" src="https://open-tech-foundation.pages.dev/img/Logo.svg" width="50" height="50">
[OPEN TECH FOUNDATION](https://open-tech-foundation.pages.dev/)
<div align="center">
# React Ta Input

</div>
> The Thamizhl (தமிழ்) language scripts input for ReactJS.
# [LIVE DEMO](https://react-ta-input.pages.dev/) | [DOCUMENTATION](https://react-ta-input.pages.dev/docs)
## Features
✅ Simple API
✅ It is based on the [ta-input-spec](https://github.com/Open-Tech-Foundation/ta-input-spec) specification
✅ Virtual Keyboard
✅ Easy switch between `ta` & `System` inputs methods
## Upcoming
⏳ Drag virtual keyboard
⏳ Virtual Keyboard size variants
⏳ Option to pick various signs
⏳ Keyboard shortcut to change input language
## Installation
```sh
npm install @opentf/react-ta-input
```
```sh
yarn add @opentf/react-ta-input
```
```sh
pnpm add @opentf/react-ta-input
```
```sh
bun add @opentf/react-ta-input
```
## Usage
```js
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>
);
}
```
## License
Copyright (c) [Thanga Ganapathy](https://github.com/Thanga-Ganapathy) ([MIT License](../../LICENSE))