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.1.tar.gz
(74.8 kB
view details)
Built Distribution
reflex_chakra-0.6.1-py3-none-any.whl
(174.8 kB
view details)
File details
Details for the file reflex_chakra-0.6.1.tar.gz
.
File metadata
- Download URL: reflex_chakra-0.6.1.tar.gz
- Upload date:
- Size: 74.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.7 Darwin/24.0.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b9b3c8bada19cbb4d1b8d8bc4ab0460ec008a91f380010c34d416d5b613dc07 |
|
MD5 | 38577563871212a7741f7e738fee0cec |
|
BLAKE2b-256 | 33e5a4109a4724f84de7f968d59326fabb74d305176969e8d8a219083809ee85 |
File details
Details for the file reflex_chakra-0.6.1-py3-none-any.whl
.
File metadata
- Download URL: reflex_chakra-0.6.1-py3-none-any.whl
- Upload date:
- Size: 174.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.7 Darwin/24.0.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 824d461264b6d2c836ba4a2a430e677a890b82e83da149672accfc58786442fa |
|
MD5 | 018c7831298956026919515ee679a1e0 |
|
BLAKE2b-256 | 2b473cf1b9e0e73efbb5c98f5c1b949de88866460f3c4b68e3d9c5d5dc1a5258 |