Metadata-Version: 2.4
Name: zpgarden
Version: 0.0.2
Summary: A FastHTML wrapper for Zendesk Garden CSS
Home-page: https://github.com/shawnemhe/zenpy-garden
Author: Shawn Emhe II
Author-email: shawnemhe@users.noreply.github.com
License: Apache Software License 2.0
Keywords: nbdev jupyter notebook python
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: License :: OSI Approved :: Apache Software License
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: fastcore
Requires-Dist: python-fasthtml
Provides-Extra: dev
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# 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.
