Socket
Socket
Sign inDemoInstall

@beisen-phoenix/mobile-field-input

Package Overview
Dependencies
94
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @beisen-phoenix/mobile-field-input

表单组件:单行文本。


Version published
Weekly downloads
8
increased by300%
Maintainers
1
Install size
3.00 MB
Created
Weekly downloads
 

Readme

Source

表单组件:单行文本。

概述

用于表单中的单行文本字段

API

参数说明类型默认值
labelText标题string
value指定输入框当前值any
placeholder输入框没有值时的帮助文字string点击填写
required是否必填booleanfalse
readOnly是否只读booleanfalse
rightEl右侧区域元素 用于显示单位或者图标string/React.ReactNode
hasError当前字段验证是否出现错误 用于显示底部错误红线booleanfalse
labelIcon自定义字段图标 展示于标题右侧 大小为 16px*16pxReact.ReactNode

多语言

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

事件

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

FAQs

Last updated on 07 Aug 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