Skip to Content

Pane

Pane is a higher-level framed section. It is a good default when you want a title and several children without configuring Block yourself.

Pane
Pane terminal preview
Terminal preview of Pane

Smallest example

let details = Pane::new() .title("Details") .child(Paragraph::new("Selected process").build()) .build();

Use Pane when

  • you want a quick titled section
  • the frame style can stay conventional
  • you are composing dashboards or split panes

Key builder methods

  • Pane::new()
  • .title(...)
  • .child(...), .children(...)
  • .layout(...)

Common combinations

  • Pane + Table for list/detail views
  • Pane + Paragraph for inspector panels
Last updated on