Skip to main content

HeroUI Provider

Modern UI components for the Reflex Python Web Framework.

I will update the classNames props later.

Features

  • Modern UI components with a clean, consistent design
  • Built specifically for Reflex web applications
  • Customizable themes and styling
  • TypeScript and Python type hints
  • Framer Motion animations
  • Tailwind CSS integration

Installation

uv pip install heroui-provider

Quick Start

import reflex as rx
import heroui as hero

# Create a state
class State(rx.State):
    count: int = 0
    
    def increment(self):
        self.count += 1
        
    def decrement(self):
        self.count -= 1

# Build your UI
def index():
    return rx.container(
        hero.provider(
            rx.vstack(
                hero.avatar(
                    name="John Doe",
                    size="lg",
                    src="https://api.dicebear.com/9.x/glass/svg?seed=Kingston",
                ),
                rx.flex(
                    hero.button(
                        "Increment",
                        on_press=State.increment,
                        color="success"
                    ),
                    rx.text(State.count),
                    hero.button(
                        "Decrement",
                        on_press=State.decrement,
                        color="danger"
                    ),
                    align="center",
                    margin="auto",
                    gap="1rem",
                ),
            ),
        )
    )

# Create and run the app
app = rx.App()
app.add_page(index)

Configuration

The HeroUI Provider comes with Tailwind configuration. In your rxconfig.py file:

import reflex as rx

tailwindplugin: dict = {
    "name": "@heroui/theme",
    "import": {"name": "heroui", "from": "@heroui/theme"},
    "call": "heroui",
}

HeroUILinker: str = "./node_modules/@heroui/theme/dist/**/*.{js,ts,jsx,tsx}"

config = rx.Config(
    app_name="my_app",
    tailwind={
        "theme": {"extend": {}},
        "content": [HeroUILinker],
        "darkMode": "class",
        "plugins": [
            "@tailwindcss/typography",
            tailwindplugin,
        ],
    },
)

Components

  • provider: Main HeroUI provider component
  • avatar: Profile image or initials display
  • button: Clickable actions
  • card: Content container with various states
  • checkbox: Selection input
  • input: Text input field
  • radio: Radio button selection
  • textarea: Multiline text input
  • alert: Notification and message display
  • More components available!

Check the documentation for complete component details.

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for details.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

Release files for heroui-provider 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for heroui-provider 0.1.5
File Size Uploaded
heroui_provider-0.1.5.tar.gz 12.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for heroui-provider 0.1.5
File Interpreter ABI Platform
heroui_provider-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 37.5 kB

Release files / heroui_provider-0.1.5.tar.gz

Download URL heroui_provider-0.1.5.tar.gz
Size 12.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c881741a8b8d6f35f583bc1bb39cc1a52c0f9cab0968771693225168f56dabe5
BLAKE2b-256 checksum
How to use checksums
00bb7b460511fe8e263816f375c06ab5653933704680409753cb23044abff1bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 12, 2025.

Transparency log

Release files / heroui_provider-0.1.5-py3-none-any.whl

Download URL heroui_provider-0.1.5-py3-none-any.whl
Size 24.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
77a0c2e1d3eabfc75f40f0abb151060ac6818c3ff6a7755f8f78f889c31325c2
BLAKE2b-256 checksum
How to use checksums
44d12bfdfade7b78e1fefc83ab1306b426a113f3d4e58dbf1d8e09c64ac1c4e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 12, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page