Skip to content

Component FilePathInput

MeowLynxSea edited this page Jan 24, 2026 · 6 revisions

FilePathInput

A file/folder path selector.

This control is read-only: users choose a path via the "Choose..." button.

Example

use gpui::ElementId;
use yororen_ui::component::{file_path_input, FilePathStatus};

let view = file_path_input()
    .key(ElementId::from(("settings", "workspace_path")))
    .placeholder("/path/to/folder")
    .status(FilePathStatus::Ok)
    .on_change(|path, _window, _cx| {
        // path: PathBuf
    });

Clone this wiki locally