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.5.10.tar.gz
(75.3 kB
view details)
Built Distribution
File details
Details for the file reflex_chakra-0.5.10.tar.gz
.
File metadata
- Download URL: reflex_chakra-0.5.10.tar.gz
- Upload date:
- Size: 75.3 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 | 35875ee7e69f1154904d6e25ce01768443ad040baa169173466e2e7782ff0c2c |
|
MD5 | 9d85d04e1cb922154c70b40d3b8ee0f3 |
|
BLAKE2b-256 | c536a403050390e527fa45f1d356dc64f4bcaf8ea25265166889b3d49f715ea0 |
File details
Details for the file reflex_chakra-0.5.10-py3-none-any.whl
.
File metadata
- Download URL: reflex_chakra-0.5.10-py3-none-any.whl
- Upload date:
- Size: 174.0 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 | ca8370b5fda32a7cd0a90a10c69e264ea9173430d3948aaabc1920e8a40dc559 |
|
MD5 | b711f36dd3691e9a934b2edb00a8f33d |
|
BLAKE2b-256 | b7cb2b0ef6ffbfd9f58ee2788405f55f7f0c61a983e6912f4241e337874414f4 |