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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: reflex_chakra-0.6.2.tar.gz
  • Upload date:
  • Size: 74.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.11.3 Darwin/22.1.0

File hashes

Hashes for reflex_chakra-0.6.2.tar.gz
Algorithm Hash digest
SHA256 81ddb7f182cc454922cc817312755b799d4e1a49a46ef2e81305052dc76ef86d
MD5 ba219820fd509080601c30a0c4a0d328
BLAKE2b-256 4c82e48f1eccd4b064a5449265fa915939be0ac97aff655240d22cf8522f14ad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reflex_chakra-0.6.2-py3-none-any.whl
  • Upload date:
  • Size: 174.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.11.3 Darwin/22.1.0

File hashes

Hashes for reflex_chakra-0.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b8aa19f39a02601c560b97f4b17f171c0b5980e13a58069e3a5dd0999e362e4f
MD5 f760321009e0d3bd5cebfd43e6dc3fec
BLAKE2b-256 c4f214c776fd0350460eedaed6f3e2df5476b0fad3385d8fc35cec51257dfaab

See more details on using hashes here.

Supported by

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