pub fn render_kv_table(
f: &mut Frame<'_>,
area: Rect,
title: &str,
shortcut: Option<u8>,
rows: &[KvRow],
scroll: u16,
focused: bool,
theme: &Theme,
)Expand description
Render a scrollable key-value table inside area.
- Section
KvRow::Headers are rendered full-width inTheme::section_header. KvRow::Fieldrows split the inner width: key column (right-aligned,Theme::hint) and value column (left-aligned,Theme::body). The key column width is the minimum of the longest key inrowsand 30% of the inner width.KvRow::Separatorrenders a blank line.scrollskips the first N logical rows before rendering.