Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

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.