1.0.3 • Published 3 years ago
donetypinginput v1.0.3
What is this?
It's a React component that fires an event when the user is done typing.
Installation
npm i donetypinginput --save
Then:
import DoneTypingInput from "donetypinginput";
export const MyInput = (props) => {
return(
<DoneTypingInput doneTypingTimer={600} onDoneTyping={props.onDoneTyping} {...props} />
);
};
Options
The component has two properties:
- doneTypingTimer - number in ms (Defaults to 500ms)
- onDoneTyping - the event handler