chun-react-ip
v1.1.0
Published
Made with create-react-library
Readme
chun-react-ip
Made with create-react-library
Install
npm install --save chun-react-ipUsage
import React, { Component } from 'react'
import MyComponent from 'chun-react-ip'
import 'chun-react-ip/dist/index.css'
class Example extends Component {
render() {
return <MyComponent />
}
}Parameter
value?:string// ip值
placeholder?: string // input placeholder
width?: number // 宽度
lineHeight?: number // 高度
borderColor?: string // 边框颜色
color?: string// input文字颜色
radius?: number // 圆角
getIp: (ip: object) => void // 获取新的IP