--ai to let an LLM generate the UI for any framework.
Usage
Options
string
default:"./generated-ui"
Output directory for the generated form.
string
default:"html"
Target framework. One of
html or react-tailwind.boolean
Use AI to generate the UI (requires a configured AI key).
What it generates
- Vanilla HTML (default): a self-contained
.htmlfile with a dark/light theme toggle, semantic form inputs, and nativefetchlogic. Handles text inputs, number inputs, and checkboxes. No build tools or dependencies required. - React + Tailwind (with
--framework react-tailwind): a.tsxReact component using Tailwind CSS classes and state management. If AI is enabled, the component is fully generated by the AI. - AI-powered (with
--ai): sends the endpoint schema to your configured AI model (OpenAI, Groq, and others) and returns production-ready code for the chosen framework. Falls back to the vanilla HTML generator if no AI key is configured or the AI call fails.
Prerequisites
- The endpoint must have a request schema in your
bazable.config.json(runbazable extract -rfirst). - For AI generation, an AI key must be configured via
bazable config --set-ai-key.