Add tui.md and improve TUI documentation

- New tui.md covers component system for hooks and custom tools
- Update hooks.md intro with 'Key capabilities' highlighting UI
- Update custom-tools.md intro with 'Key capabilities' highlighting UI
- Reference tui.md from both docs
This commit is contained in:
Mario Zechner 2025-12-31 13:05:59 +01:00
parent 29e0ed9cd1
commit 20fbf40fac
3 changed files with 337 additions and 7 deletions

View file

@ -432,7 +432,7 @@ Your component can:
- Call `handle.requestRender()` to trigger re-render
- Call `handle.close()` when done to restore normal UI
See [examples/hooks/snake.ts](../examples/hooks/snake.ts) for a complete example with game loop, keyboard handling, and state persistence.
See [examples/hooks/snake.ts](../examples/hooks/snake.ts) for a complete example with game loop, keyboard handling, and state persistence. See [tui.md](tui.md) for the full component API.
### ctx.hasUI