Input
输入框
导入
import { Input } from '@ray-js/ray';
属性说明
| 属性 | 类型 | 默认值 | 说明 | 支持平台 |
|---|---|---|---|---|
| className | string | 样式名 | 涂鸦、微信 | |
| value | string | 内容 | 涂鸦、微信 | |
| type | string | text | 类型 text/number/idcard/digit | 涂鸦、微信 |
| password | boolean | false | 是否为密码 | 涂鸦、微信 |
| placeholder | string | 占位内容 | 涂鸦、微信 | |
| placeholderStyle | object | placeholder 样式 | 涂鸦、微信 | |
| disabled |

本文介绍了如何在React应用中使用Ray-js库的Input组件进行基本操作,包括设置默认值、类型、事件监听等。同时,展示了Label组件的使用,强调了提高表单组件可用性的关键属性和示例代码。
最低0.47元/天 解锁文章
2771





