Skip to main content

render_button

Function render_button 

Source
pub fn render_button(
    frame: &mut Frame<'_>,
    area: Rect,
    state: &ButtonState,
    colors: &ButtonColors,
) -> ButtonLayout
Expand description

Render a button control

§Arguments

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

§Returns

Layout information for hit testing