Skip to main content

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


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.8.0.tar.gz (70.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

reflex_chakra-0.8.0-py3-none-any.whl (174.8 kB view details)

Uploaded Python 3

File details

Details for the file reflex_chakra-0.8.0.tar.gz.

File metadata

  • Download URL: reflex_chakra-0.8.0.tar.gz
  • Upload date:
  • Size: 70.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.13

File hashes

Hashes for reflex_chakra-0.8.0.tar.gz
Algorithm Hash digest
SHA256 3716b8ea2940588a1f851f2fbe85c1ac53ff91e494b8f106bf4a36946c368820
MD5 21f3414b56dbf1021cc487bbb6b1fe4c
BLAKE2b-256 681038a72e4b798258bc12947cf871ee7fc45c0e7a70496c586c91021ce31c57

See more details on using hashes here.

File details

Details for the file reflex_chakra-0.8.0-py3-none-any.whl.

File metadata

File hashes

Hashes for reflex_chakra-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cbfdb1fc097a731c145ac0ebb0f4ca6407037a179f58ef1e4ba082a54b8c6021
MD5 c68c37a80e828677bd038ee2d71b7fb5
BLAKE2b-256 6544c241e361e84ed84b4dca7beaef7bf162eef1f9f6a4ba6a38d95422aab991

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page