1.1.3 • Published 3 years ago

async-input v1.1.3

Weekly downloads
4
License
MIT
Repository
github
Last release
3 years ago

Status GitHub issues open GitHub Pull Requests License

📝 Table of Contents

🚀 Installation

You can install the package using yarn or npm

npm

npm install async-input

yarn

yarn add async-input

💡 Usage

import React from 'react'
import AsyncInput from 'async-input'

 <AsyncInput
    value={this.state.text}
    nativeProps={{
      type: "text",
      placeholder: "wow",
    }}
    onChange={(text) => this.setState({ text })}
    debounceTime={1000}
/>

Props

PropTypeDescriptionDefault
elementTypestringconstructs the element from the type given eg. input or textAreainput
onChangefunctiononChange handler function to receive the input valuenull
debounceTimenumbertime to wait for the return value from input0.5s
nativePropsobjectnative properties that can be passed to html input or text area, e.g. style, className etc{}

⛏️ Built Using

  • React - Frontend Library
  • Babel - Use next generation JavaScript, today.
  • Webpack - Javascript Bundler

✍️ Authors

1.1.1

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.0

4 years ago

1.0.0

4 years ago