docs: add HeroLib Web UI documentation

- Add quick start guide with code example
- List key features of the UI
- Detail built-in tools and their paths
This commit is contained in:
Mahmoud-Emad
2025-08-21 20:04:25 +03:00
parent cf187d46b3
commit 03de3a6aee

28
lib/web/ui/README.md Normal file
View File

@@ -0,0 +1,28 @@
# HeroLib Web UI
Modern web UI framework for HeroLib, built with **V** + **Bootstrap 5**.
## Quick Start
```v
import freeflowuniverse.herolib.web.ui
mut app := ui.new_app()
app.title = 'My HeroLib App'
app.start(port: 8080)!
```
👉 Open [http://localhost:8080/admin](http://localhost:8080/admin)
## Features
* 🎨 Light/Dark themes
* 🧭 Dynamic menus
* 📱 Responsive design (Bootstrap 5)
* ⚡ Fast & lightweight
## Built-in Tools
* **HeroPrompt** → `/admin/heroprompt`
* **Chat** → `/admin/chat`
* **HeroScript** → `/admin/heroscript`