TextInput
Single-line text input.
…
import { TextInput } from 'react-gui/text-input';
<TextInput {...props} />;
API #
Props #
autoCorrect ?("on" | "off")
A string indicating whether or not auto-correct behavior is on or off. Safari only.
defaultValue ?string
The initial value of the input.
enterKeyHint ?string
Specifies what action label (or icon) to present for the enter key on virtual keyboards. Equivalent to HTMLElement.enterkeyhint
inputMode ?string
Hints at the type of data that might be entered by the user while editing the element or its contents. Equivalent to HTMLElement.inputMode
placeholder ?boolean
Text that appears in the form control when it has no value set.
secureTextEntry ?boolean
Set to true
for passwords and other sensitive data. Equivalent to HTMLInputElement “password” type
style ?Style
Set the styles of the view.
testID ?string
Set the test selector label (via data-testid
).
value ?string
The value of the input when using it as a controlled component.
Styles #
Details #
…