Skip to main content

Module components

Module components 

Source
Expand description

UI components (text, input, editor, table, etc.). UI components provided by photon-ui.

Each submodule implements a specific Component trait for rendering and interacting with a distinct UI element.

Re-exports§

pub use box_component::Box;
pub use breadcrumbs::Breadcrumbs;
pub use button::Button;
pub use cancellable_loader::CancellableLoader;
pub use container::Container;
pub use div::Div;
pub use divider::Divider;
pub use editor::Editor;
pub use header::Header;
pub use image_widget::ImageWidget;
pub use input::Input;
pub use loader::Loader;
pub use markdown::Markdown;
pub use modal::Modal;
pub use panel::Panel;
pub use progress_bar::ProgressBar;
pub use select_list::SelectList;
pub use settings_list::SettingsList;
pub use sidebar::Sidebar;
pub use sidebar::SidebarItem;
pub use spacer::Spacer;
pub use status_bar::Segment;
pub use status_bar::StatusBar;
pub use table::Column;
pub use table::Row;
pub use table::Table;
pub use tabs::Tabs;
pub use text::Text;
pub use tree_view::TreeNode;
pub use tree_view::TreeView;
pub use truncated_text::TruncatedText;

Modules§

box_component
A box that draws a border around its content.
breadcrumbs
Hierarchical breadcrumb navigation. Breadcrumbs component.
button
Clickable button. Beam Design Language button component.
cancellable_loader
Loading spinner that can be cancelled.
container
Generic container component.
div
Layout container that splits space among children. A flexible container with optional borders, padding, title, and background.
divider
Horizontal or vertical divider line. A visual divider line — horizontal or vertical.
editor
Multi-line text editor with vim/emacs modes.
header
Page header component. Header component.
image_widget
Terminal image display widget.
input
Single-line text input with vim/emacs modes.
loader
Loading spinner.
markdown
Markdown renderer.
modal
Modal dialog overlay.
panel
Panel container with optional border. A bordered panel component for wrapping content.
progress_bar
Progress bar. Progress bar component.
select_list
Selectable list of items.
settings_list
Settings key/value list.
sidebar
Sidebar navigation.
spacer
Empty spacer for layout padding.
status_bar
Status bar with segments. Status bar component.
table
Table with sortable columns and row selection.
tabs
Tab bar.
text
Static text label.
tree_view
Collapsible tree view.
truncated_text
Text truncated to fit a width.