-
Notifications
You must be signed in to change notification settings - Fork 9
Component TextInput
MeowLynxSea edited this page Jan 23, 2026
·
10 revisions
Single-line text input.
use gpui::ElementId;
use yororen_ui::component::text_input;
let input = text_input()
.key(ElementId::from((ElementId::from("settings"), "username")))
.placeholder("Username")
.on_change(|value, _window, _cx| {
// value: SharedString
// ...
});- TextInput owns internal cursor/selection state, so stable
key(...)is recommended in lists.
Yororen UI v0.3.0 · repository · Apache-2.0 · This wiki documents Yororen UI v0.3.0.
This wiki documents Yororen UI v0.3.0 — the headless-core, swappable-renderer build.