pub fn main_chrome(area: Rect) -> (Rect, Rect, Rect)Expand description
Splits the terminal area into top bar (1 row), body (min 1 row), and bottom bar (1 row).
Returned tuple is (top, body, bottom). When area.height < 3
the ratatui Layout engine still yields three rects but some
may be zero-sized; the caller is responsible for skipping them.
ยงExamples
use ratatui::layout::Rect;
use rtcom_tui::layout::main_chrome;
let (top, body, bottom) = main_chrome(Rect::new(0, 0, 80, 24));
assert_eq!(top.height, 1);
assert_eq!(body.height, 22);
assert_eq!(bottom.height, 1);