Socket
Socket
Sign inDemoInstall

@beisen-phoenix/mobile-base-input

Package Overview
Dependencies
3
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @beisen-phoenix/mobile-base-input

基本输入框 通栏输入、全边框输入


Version published
Weekly downloads
15
increased by400%
Maintainers
1
Install size
7.40 MB
Created
Weekly downloads
 

Readme

Source

基本输入框 通栏输入、全边框输入

API

参数说明类型默认值
value指定输入框当前值any
defaultValue输入框初始值any
placeholder输入框没有值时的帮助文字string点击填写
readOnly是否只读booleanfalse
hasError当前字段验证是否出现错误 用于显示底部错误红线booleanfalse
icon自定义字段图标 展示于输入框右侧 大小为 16px*16pxReact.ReactNode
type类型string

样式

参数说明类型默认值
fullBorder全边框true/通栏输入框false 默认为通栏输入框booleanfalse
textAlign文字对齐方式 可选值为css支持的所有对齐方式stringright

多语言

参数说明类型默认值
translation语言包 用于翻译组件内置常量{inputHolder: string}{inputHolder: '点击填写'}

事件

参数说明类型默认值
onFocus输入框获取焦点时的回调(e: React.FocusEvent) => void
onChange输入框内容变化时的回调(value: string) => void
onBlur输入框失去焦点时的回调(e: React.FocusEvent) => void

FAQs

Last updated on 05 Nov 2019

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