Skip to main content

render_form

Function render_form 

Source
pub fn render_form(
    f: &mut Frame<'_>,
    area: Rect,
    state: &FormState,
    theme: &Theme,
)
Expand description

Render the form inside area.

Each field takes up to 3 rows:

  1. Label [*]: <input>
  2. Description hint (only when focused, in Theme::hint)
  3. Blank separator

The caller is responsible for wrapping this in a crate::popup::centered_popup