Prefab is a generative UI framework for Python by PrefectHQ. It allows building interactive web UIs with pure Python, using reactive components. Current version: 0.19.1, requires Python >=3.10. Release cadence is active with frequent minor/patch releases.
pip install prefab-uiNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Minimal app with a button, served locally.
Use `import prefab` or `from prefab import ...`
Use `from prefab.components import Button, Form, ...`
Use `prefab.state.State` or `prefab.state.Reactive` for mutable state.
Upgrade to 0.19.1+ or implement prefill manually.
Upgrade to 0.17.0+ or set `show_legend=True` explicitly.