TypeDialog/examples/01-basic
2026-01-11 22:35:49 +00:00
..
base_from.toml chore: add taplo and check all toml files 2025-12-28 20:39:36 +00:00
debug_simple.toml chore: add taplo and check all toml files 2025-12-28 20:39:36 +00:00
form.toml chore: add taplo and check all toml files 2025-12-28 20:39:36 +00:00
form_with_grouped_items.toml chore: add taplo and check all toml files 2025-12-28 20:39:36 +00:00
form_with_sections.toml chore: add taplo and check all toml files 2025-12-28 20:39:36 +00:00
README.md chore: fix md lint 2026-01-11 22:35:49 +00:00

Basic Forms

Simple form examples for getting started with typedialog.

Files

  • form.toml - Minimal form structure
  • form_with_sections.toml - Organizing fields into sections
  • form_with_grouped_items.toml - Grouping related fields
  • base_from.toml - Base template for extending forms
  • debug_simple.toml - Simple form for testing/debugging

Usage

CLI Backend

cargo run --example form
```text

### TUI Backend
```bash
cargo run -p typedialog-tui --example tui_survey_form
```text

### Web Backend
Build your form in TOML and serve with the web backend:
```bash
cargo run -p typedialog-web -- --config form.toml
```text

## Features Demonstrated

- Basic field definitions
- Sections and grouping
- Simple validation
- TOML syntax basics