Socket
Socket
Sign inDemoInstall

mobile-input

Package Overview
Dependencies
6
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    mobile-input

手机号输入组件


Version published
Weekly downloads
1
decreased by-75%
Maintainers
1
Install size
485 kB
Created
Weekly downloads
 

Readme

Source

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

FAQs

Last updated on 09 Sep 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc