English | 简体中文
@ray-js/components-ty-input
Tuya Style Input
Installation
$ npm install @ray-js/components-ty-input
# or
$ yarn add @ray-js/components-ty-input
Usage
import Input from '@ray-js/components-ty-input';
const [value, setValue] = useState('2000');
<Input placeholder="Input" value={value} onInput={e => setValue(e.value)} addonAfter="W" />;