<html.input>
<html.input>
组件允许您渲染文本输入框。
概述
要显示输入元素,请渲染 <html.input>
组件。
import { html } from 'react-strict-dom';
const Foo = () => (
<html.input
onInput={() => {}}
placeholder="Placeholder text"
/>
);
属性
- ...常用属性
autoComplete
checked
defaultChecked
defaultValue
disabled
max
maxLength
min
minLength
multiple
onBeforeInput
onChange
onInput
onInvalid
onSelect
onSelectionChange
placeholder
readOnly
required
step
type
value