mobile-input

1.0.4 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i mobile-input

Weekly Downloads

0

Version

1.0.4

License

MIT

Unpacked Size

82 kB

Total Files

7

Last publish

Collaborators

  • runningiris