emotion-autofill-input
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

emotion-autofill-input

Autofill detection with emotion and react

NPM

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

/emotion-autofill-input/

    Package Sidebar

    Install

    npm i emotion-autofill-input

    Weekly Downloads

    1

    Version

    0.1.1

    License

    MIT

    Unpacked Size

    34 kB

    Total Files

    7

    Last publish

    Collaborators

    • browniefed