1.5.0-np • Published 1 year ago

react-focus-input-z v1.5.0-np

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Description

  • Hightlight input-text when focus

Usage

Install the package

npm install --save react-focus-input-z

Import the module in the place you want to use:

import "react-focus-input-z/build/styles.css";
import FocusInput from "react-focus-input-z";

Snippet

    const [value, setValue] = useState("");
    <FocusInput value={value} onChange={evt => setValue(evt.target.value)} />

props

see index.d.ts

HtmlInput

RUN

LIVE EXAMPLE

version

1.3.0-np: Update auto focus if needed. (standard) 1.5.0-np: Optimize something

License

MIT