pub fn render_toggle_aligned(
frame: &mut Frame<'_>,
area: Rect,
state: &ToggleState,
colors: &ToggleColors,
label_width: Option<u16>,
) -> ToggleLayoutExpand description
Render a toggle control with optional label width alignment
§Arguments
frame- The ratatui frame to render toarea- Rectangle where the toggle should be renderedstate- The toggle statecolors- Colors for renderinglabel_width- Optional minimum label width for alignment
§Returns
Layout information for hit testing