pub fn card(rect: Rect, title: Option<&str>, theme: &KitTheme) -> RectExpand description
panel with an optional header band and title; returns the content area
inset by the spacing scale.
use ferravex_render::{Rect, ui::kit::{self, KitTheme}};
let inner = kit::card(Rect::new(0., 0., 300., 200.), Some("Loadout"), &KitTheme::default());
assert!(inner.y > 40. && inner.x == 16.);