Skip to main content

A FastHTML wrapper for Zendesk Garden CSS

Project description

zenpy-garden

A library for building server-side rendered Zendesk applications in Python. Wraps Zendesk Garden CSS components in Python components, optimized for FastHTML but adaptable to other Python web frameworks. Inspired by fhdaisy.

Installation

pip install zenpy-garden

Quick Start

Add Garden headers to your FastHTML app:

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

app = FastHTML(hdrs=garden_hdrs)

Create styled components:

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 for full examples.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zpgarden-0.0.2.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zpgarden-0.0.2-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file zpgarden-0.0.2.tar.gz.

File metadata

  • Download URL: zpgarden-0.0.2.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for zpgarden-0.0.2.tar.gz
Algorithm Hash digest
SHA256 73088a23823cad7c773375743d5ddccec7572ede0a16a5d8d4d4f89f1618bf0f
MD5 be891ee3f554aeb3b7355814e662ff4f
BLAKE2b-256 beb3c30c7554c68aa882487898d69631807d4a0efad9061b9c7a212fd24fe579

See more details on using hashes here.

File details

Details for the file zpgarden-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: zpgarden-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for zpgarden-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 328cc8ba6e35f9eff1d1feafd6f091d7dea02ba14aba184e482854b919b38c80
MD5 c0861b5fe088e0e57f831b05c57dc0e7
BLAKE2b-256 97a21f8185dfa6b4b831c764b891ccd729f484dea7c159419ba4130389fec770

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page