pub fn FormInput(_: FormInputProps) -> ElementExpand description
表单输入框组件。
Props:
id:input 元素 id,用于与 label 关联r#type:input 类型(如"text"、"email"、"password")placeholder:占位提示文本value:当前值disabled:是否禁用(可选,缺省false)oninput:输入事件回调,返回新的字符串值onkeydown:可选的键盘事件回调class:自定义 class(可选,缺省用INPUT_CLASS全宽表单款)。 内联/固定宽度场景传INPUT_INLINE_CLASS或自定义类串,覆盖默认样式。mono:是否使用等宽字体(代码片段、表名、JSON 等,缺省false)
§Props
For details, see the props struct definition.