Skip to main content

Module file_browser

Module file_browser 

Source
Expand description

File browser sidebar with tree navigation.

Displays a hierarchical file tree for the Studio’s virtual file system. Supports collapsible directories, file selection, and responsive layout.

§Props

  • tree - Root FileNode containing the file tree
  • selected_path - Currently selected file path
  • on_select - Callback when a file is selected
  • on_toggle_dir - Callback when a directory is expanded/collapsed
  • on_new_file - Callback for new file button

§File Icons

Icons are chosen by file extension:

  • .logic files: ∀ (forall symbol)
  • .logos files: λ (lambda symbol)
  • .math files: π (pi symbol)
  • Other files: document icon

Re-exports§

pub use FileBrowser_completions::Component::FileBrowser;

Structs§

FileBrowserProps
Properties for the FileBrowser component.

Functions§

FileBrowser
Props