Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 583 Bytes

File metadata and controls

18 lines (14 loc) · 583 Bytes

Forms and Validation Example

This example demonstrates how to build a multi-field form using the @termuijs/ui package.

What it shows

  • Combining standard text inputs (using the Form widget) alongside NumberInput and PasswordInput widgets in a single screen layout.
  • Managing unified form state.
  • Inline validation and error rendering.
  • Triggering a Modal prompt for user confirmation before clearing the form.

How to run

bun install
bun run dev

Structure

  • src/index.tsx: The main application utilizing the TermUI widgets and layout engine.