Metadata-Version: 2.5
Name: hue-ui
Version: 0.0.2
Summary: A component library for Python and html template rendering engine
Project-URL: Repository, https://github.com/danielkjellid/hue
Author-email: Daniel Kjellid <daniel@kjellid.no>
License-Expression: MIT
License-File: LICENSE
Requires-Python: >=3.13
Requires-Dist: htmy<0.9,>=0.8.2
Requires-Dist: pydantic-core>=2.0.0
Requires-Dist: pydantic>=2.0.0
Requires-Dist: pytailwindcss>=0.3.0
Requires-Dist: typing-extensions>=4.15.0
Description-Content-Type: text/markdown

# hue

A component library for Python that renders HTML. You build pages from Python
objects in a chainable style, and hue renders them with
[htmy](https://pypi.org/project/htmy/). The styling is Tailwind and the
interactivity is Alpine.js with Alpine AJAX. The stylesheet and scripts ship
inside the package, so there is no Node or Tailwind build step in your project.

```python
from hue.ui import Button, Stack, Text

Stack().horizontal().content(
    Text("Delete this project?"),
    Button().variant("danger").content(Text("Delete")),
)
```

## Install

The package is called `hue-ui`, and you import it as `hue`. Most projects
install a framework integration, which pulls in `hue-ui` and serves its assets:

```sh
uv add hue-django   # Django
uv add hue-fastapi  # FastAPI
```

All three packages release together under the same version number.

Source, docs and issues: https://github.com/danielkjellid/hue
