# zenpy-garden


<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->

A library for building server-side rendered Zendesk applications in
Python. Wraps [Zendesk Garden CSS
components](https://github.com/zendeskgarden/css-components) in Python
components, optimized for [FastHTML](https://fastht.ml) but adaptable to
other Python web frameworks. Inspired by
[fhdaisy](https://github.com/answerdotai/fhdaisy).

## Installation

``` sh
pip install zenpy-garden
```

## Quick Start

Add Garden headers to your FastHTML app:

``` python
from fasthtml.common import *
from zpgarden.core import *
from zpgarden.components import *

app = FastHTML(hdrs=garden_hdrs)
```

Create styled components:

``` python
Btn('Click me')
Btn('Primary', cls='--primary')
Anchor('Learn more', href='#', cls='--danger')
```

## Components

- **Anchors** — Styled links with danger and dark variants
- **Avatars** — User and system avatars with size options
- **Buttons** — Primary, danger, pill, icon variants
- **Forms** — Inputs, textareas, selects, checkboxes, radios with
  validation states
- **Tags** — Colored labels with pill and round shapes

See the [Components
documentation](https://shawnemhe.github.io/zenpy-garden/components.html)
for full examples.
