pub fn fps_badge(stats: &FrameStats) -> impl IntoElementExpand description
Renders FrameStats as a color-coded status-bar chip.
Green at ≥ 50fps, amber at ≥ 25fps, red below — so a selection-drag
regression is visible at a glance. Returns a plain div, so hosts can
drop it anywhere (status bars, overlays).