Skip to main content

<html.input>

The <html.input> component lets you render a text input.

Overview

To display an input element, render the <html.input> component.

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

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

Props

  • ...Common props
  • autoComplete
  • checked
  • defaultChecked
  • defaultValue
  • disabled
  • max
  • maxLength
  • min
  • minLength
  • multiple
  • onBeforeInput
  • onChange
  • onInput
  • onInvalid
  • onSelect
  • onSelectionChange
  • placeholder
  • readOnly
  • required
  • step
  • type
  • value