1.0.4 • Published 4 years ago

mobile-input v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

MobileInput component

CHANGE LOG

  • feat: add hyphens between numbers

Usage

import React from "react"
import MobileInput from "mobile-input"

class App extends React.PureComponent {
  state = { value: "" }

  render() {
    const { value } = this.state
    return (
      <div>
        <label htmlFor="">Mobile: </label>
        <MobileInput
          value={value}
          onChange={(v) => this.setState({ value: v })}
        >
          <input text=""></input>
        </MobileInput>
      </div>
    )
  }
}

Props

  • onChange: f()
  • value: string
1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago