reflex using chakra components
Project description
reflex-chakra
Use reflex with chakra-ui components.
Installation
pip install reflex-chakra
Usage
import reflex as rx
import reflex_chakra as rc
def index():
return rx.fragment(
rc.vstack(
rc.heading("This is a header"),
rc.center("This text is centered"),
rc.button(
"click me",
on_click=rx.toast("show toast!"),
bg="purple",
border_radius="0.5em",
pl="10px"
)
),
)
app = rx.App()
app.add_page(index)
Visit the docs for more info of chakra-ui components.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
reflex_chakra-0.6.0.tar.gz
(74.4 kB
view details)
Built Distribution
reflex_chakra-0.6.0-py3-none-any.whl
(174.8 kB
view details)
File details
Details for the file reflex_chakra-0.6.0.tar.gz
.
File metadata
- Download URL: reflex_chakra-0.6.0.tar.gz
- Upload date:
- Size: 74.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.11.8 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | db1c7b48f1ba547bf91e5af103fce6fc7191d7225b414ebfbada7d983e33dd87 |
|
MD5 | da47271115ec79f999382cb55b7a8f00 |
|
BLAKE2b-256 | 38ebbca4655c72ff5d8dcfb2e8dd5c78ceda2ee2b8f1a9325a201089ffd1be6a |
File details
Details for the file reflex_chakra-0.6.0-py3-none-any.whl
.
File metadata
- Download URL: reflex_chakra-0.6.0-py3-none-any.whl
- Upload date:
- Size: 174.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.11.8 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eca1593fca67289e05591dd21fbcc8632c119d64a08bdc41fd995055a114cc91 |
|
MD5 | 96e8460fa1785acb986421e9bcb913b5 |
|
BLAKE2b-256 | a0f8282f23fb91648d27e462928b45852afaecd231617784f981141b9c558b72 |