Hero UI - Modern UI components for Reflex Web Framework
Project description
HeroUI Provider
Modern UI components for the Reflex Python Web Framework.
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 componentavatar: Profile image or initials displaybutton: Clickable actionscard: Content container with various statescheckbox: Selection inputinput: Text input fieldradio: Radio button selectiontextarea: Multiline text inputalert: 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
- Reflex Web Framework
- Wrapper over HeroUI
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file heroui_provider-0.1.3.tar.gz.
File metadata
- Download URL: heroui_provider-0.1.3.tar.gz
- Upload date:
- Size: 11.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab48662d8d28076461e811de58d0ea19e3989d1507131e4596285476d0be2d71
|
|
| MD5 |
679c6e6e225f42df048eb5c7bd96dbce
|
|
| BLAKE2b-256 |
dcd850ab4a7a6896fe6afc6f260d0d1e81d4c9888d5bc6b1c110de8350035c1d
|
Provenance
The following attestation bundles were made for heroui_provider-0.1.3.tar.gz:
Publisher:
publish.yml on itsmeadarsh2008/heroui-provider
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
heroui_provider-0.1.3.tar.gz -
Subject digest:
ab48662d8d28076461e811de58d0ea19e3989d1507131e4596285476d0be2d71 - Sigstore transparency entry: 214447541
- Sigstore integration time:
-
Permalink:
itsmeadarsh2008/heroui-provider@4e977e4ab560c4e61cb0802eb0e5e01cc99d1a52 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/itsmeadarsh2008
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4e977e4ab560c4e61cb0802eb0e5e01cc99d1a52 -
Trigger Event:
push
-
Statement type:
File details
Details for the file heroui_provider-0.1.3-py3-none-any.whl.
File metadata
- Download URL: heroui_provider-0.1.3-py3-none-any.whl
- Upload date:
- Size: 21.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
060138525343ba9de41c9a93068ab1741332ff542a7d36fb741acbdaa3fb5806
|
|
| MD5 |
599f6a90d5c8d754ceaff81e2905820d
|
|
| BLAKE2b-256 |
f431d5d6a006b0337f1e76213703e5872d54a9753dcd9336a46195ba835c1cff
|
Provenance
The following attestation bundles were made for heroui_provider-0.1.3-py3-none-any.whl:
Publisher:
publish.yml on itsmeadarsh2008/heroui-provider
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
heroui_provider-0.1.3-py3-none-any.whl -
Subject digest:
060138525343ba9de41c9a93068ab1741332ff542a7d36fb741acbdaa3fb5806 - Sigstore transparency entry: 214447544
- Sigstore integration time:
-
Permalink:
itsmeadarsh2008/heroui-provider@4e977e4ab560c4e61cb0802eb0e5e01cc99d1a52 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/itsmeadarsh2008
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4e977e4ab560c4e61cb0802eb0e5e01cc99d1a52 -
Trigger Event:
push
-
Statement type: