//! Compact text badge widget. use rustik_tui_core as tui_core; use tui_core::{Buffer, Constraint, Label, Line, Rect, Size, Style, Widget}; /// Compact text badge with styled end caps. #[derive(Debug, Clone)] pub struct Badge { /// Text rendered between the caps. text: Label, /// Leading cap. left: Label, /// Trailing cap. right: Label, } impl Badge { /// Creates a badge with powerline-style rounded caps. pub fn new(text: impl Into