Skip to main content

TextField

A control that displays an editable text interface.

Example​

const firstName = useBinding('');
<TextField placeholder="Name" text={firstName} />

Props​

TextField inherits all View Modifiers and Text Modifiers as props.

propdescriptiontyperequireddefault
textThe text to display and edit.Binding<string> \| stringyesundefined
placeholderThe title of the text view, describing its purpose.stringnoundefined
onChangeFunction to execute when the input text value changes() => voidnoundefined