pub type Input = Field<InputMode>;Expand description
A single-line text field on an InputState.
use gpui_cn::{Input, InputState};
use gpui_kit::{AppContext as _, Context, Window};
fn field(window: &mut Window, cx: &mut Context<()>) -> Input {
let state = cx.new(|cx| InputState::new(window, cx).placeholder("Name"));
Input::new(&state)
}Aliased Typeยง
pub struct Input { /* private fields */ }