Skip to main content

VoiceTextButton

Despite its name, VoiceTextButton is not a Button and has no click event. It is a fixed composed view containing rectangles, a label, and a NativeVoiceTextEditBox.

VoiceTextButton({
text: this.searchText,
})
.onTextChange((event) => {
this.searchText = event.text ?? '';
});

Its public fields are text, isFocused, and onTextChange. The current composition hard-codes a 400-pixel-wide edit surface and prompt copy; it does not expose the underlying voice, placeholder, style, or submit options.

Prefer TextInput for application forms and NativeVoiceTextEditBox when the design needs a configurable native voice field. Use VoiceTextButton only when its fixed prototype presentation matches the intended UI.

Talk to us