TextField
A controlled native SwiftUI text field with edit and submit callbacks.
#Import
Import TextField from @quickgui/solid/swift-ui.
import { Host, TextField } from "@quickgui/solid/swift-ui";#Usage
<Host matchContents={{ vertical: true }} style={{ width: 280 }}>
<TextField
value={name()}
placeholder="Name"
onValueChange={setName}
onSubmit={save}
/>
</Host>#API reference
Expand an entry for its description and complete signature. A dash means no declaration default is documented.
TextField
View sourceTextField(props: TextFieldProps): NativeNodetestIDstring—
modifiersViewModifier[]—
valuestring—
placeholderstring—
Declares placeholder (optional). Reactive JSX expressions update this property in place.
stringView sourceonValueChange(value: string, event: QuickGuiEvent) => void—
Declares onValueChange (optional). Reactive JSX expressions update this property in place.
(value: string, event: QuickGuiEvent) => voidView sourceonSubmit(event: QuickGuiEvent) => void—
Declares onSubmit (optional). Reactive JSX expressions update this property in place.
(event: QuickGuiEvent) => voidView sourceref((node: NativeNode) => void) | NativeNode—
Declares ref (optional). Reactive JSX expressions update this property in place.
((node: NativeNode) => void) | NativeNodeView source