跳到主要内容

<html.textarea>

<html.textarea> 组件允许你渲染一个多行文本输入框。

概述

要显示文本区域,请渲染 <html.textarea> 组件。

import { html } from 'react-strict-dom';

const Foo = () => (
<html.textarea
onInput={() => {}}
placeholder="Placeholder text"
rows={3}
/>
);

属性

  • ...通用属性
  • autoComplete
  • defaultValue
  • disabled
  • maxLength
  • minLength
  • onBeforeInput
  • onChange
  • onInput
  • onInvalid
  • onSelect
  • onSelectionChange
  • placeholder
  • readOnly
  • required
  • rows
  • value