Skip to main content
Renders a labelled text control with its hint and error, as an input or, with multiline, a textarea.

Parameters

props

TapInputProps

Returns

ReactElement

Remarks

Generates an id when none is passed and binds the label, the hint and the error to the control, so the field is announced whole; an error also sets aria-invalid and the --tap-danger border. The textarea starts at four rows and is resizable in height. Pass type="checkbox" with className="tap-control--checkbox" for a boolean, which is what TapForm does.

Example