emotion-autofill-input
v0.1.1
Published
Autofill detection with emotion and react
Downloads
4
Readme
emotion-autofill-input
Autofill detection with emotion and react
Install
yarn add emotion-autofill-input
// or
npm install --save emotion-autofill-input
Usage
import React, { Component } from "react";
import AutofillInput from "emotion-autofill-input";
export default class App extends Component {
state = {
value: "",
};
render() {
return (
<div>
<AutofillInput
value={this.state.value}
onChange={e => {
this.setState({ value: e.target.value })
console.log(e.target.value);
}}
name="name"
onAutoFill={filled => console.log(filled)}
/>
</div>
);
}
}
License
MIT © browniefed