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.1.tar.gz (63.7 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.1-py3-none-any.whl (168.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for reflex_chakra-0.8.1.tar.gz
Algorithm Hash digest
SHA256 30132cd33d86cd98b289d75ea863175c2df5a7cdf5bf9a669e50d4a9b677cbbf
MD5 968cfbf1e9e7050a4b7e49a358b5fb12
BLAKE2b-256 ca72cf0c4a62a72d5f504cc4fa0d2459f8a459386bc6148c5c6812e5fe8de4f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for reflex_chakra-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8133e74d9b2a68316e952a2b04553ee7ed2a67367b15f2a8e9d85dae4c64d656
MD5 5faadae458bafa07c2cbe71cfdf3e62b
BLAKE2b-256 4bf496313a5a151b8005ec5ccbbdaeb4badbff708b71cfb70fa499049cb75e8f

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