Skip to Content
WidgetsShell

Shell

Shell is the main three-slot layout primitive for application screens.

Shell
Shell terminal preview
Terminal preview of Shell

Smallest example

let app = Shell::new() .header(StatusBar::new("ansiq · ready").build()) .body(Paragraph::new("Main area").build()) .footer(Input::new().placeholder("Type here").build()) .build();

Use Shell when

  • you want a stable header, body, and footer
  • the body may change while header/footer stay pinned
  • you are building monitors, explorers, or session UIs

Key builder methods

  • Shell::new()
  • .header(...)
  • .body(...)
  • .footer(...)
  • .style(...)

Important note

Shell is intentionally a three-slot primitive: header, body, footer.

Where to see it in examples

Last updated on