Skip to main content

render_toggle

Function render_toggle 

Source
pub fn render_toggle(
    frame: &mut Frame<'_>,
    area: Rect,
    state: &ToggleState,
    colors: &ToggleColors,
) -> ToggleLayout
Expand description

Render a toggle control

§Arguments

  • frame - The ratatui frame to render to
  • area - Rectangle where the toggle should be rendered
  • state - The toggle state
  • colors - Colors for rendering

§Returns

Layout information for hit testing